Different types for declaring pointer variables
- by viswanathan
Consider the below 2 declarations.
appears next to the datatype and not next to variable
char* ptr1, * ptr2, * ptr3; //all 3 are pointers
appears next to the variable and not next to datatype
char *ptr1,*ptr2,*ptr3; //again al 3 are pointers
Is there any difference in intepretation between the 2 declarations. I know there is no difference in the variables.
What is the rationale behind introducing void pointers?