Different types for declaring pointer variables
        Posted  
        
            by viswanathan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by viswanathan
        
        
        
        Published on 2010-05-01T17:54:57Z
        Indexed on 
            2010/05/01
            17:57 UTC
        
        
        Read the original article
        Hit count: 280
        
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?
© Stack Overflow or respective owner