Right Click to Search

Friday, January 1, 2025

How to Declare Pointer in C Programming ?



Syntax :
data_type  *  pointer_name ;
Explanation :

Syntax
Refers
Data Type
  • Type of variable that the pointer points to
  •  OR data type whose address is stored in pointer_name
        Asterisk(*)
  • Indirection Operator
  • Value at address Operator
  • Indicates Variable declared is of Pointer type
 Pointer_Name 
  • Any Valid C identifier
  • Must follow all Rules of Variable name declaration

Valid Writing Styles: 
  •  Note : * can appears anywhere between Pointer_name and Data Type
 int *p;
 int         *q;
 int   *   q ;



    Bookmark & Share

    Tags / Keywords : |

    Stumble
    Delicious
    Technorati
    Twitter
    Facebook

    0 Comments:

    Post a Comment

    Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

     

    Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates