"The asterisk sign can be placed next to the data type, or the variable name, or in the middle." Could anyone explain this?
5/16/2020 12:00:54 PM
Kumudu_Mohottala2 Answers
New AnswerIt means you can declare pointers like: int* ptr; //next to data type int *ptr; //next to the variable name int * ptr; //middle
The asterisk sign is used to declare a pointer (the same asterisk that you use for multiplication), however, in this statement the asterisk is being used to designate a variable as a pointer.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message