pawansharma's Avatar, Join Date: May 2012
Newbie Member
Excellent example how to use pointer in c.
Healthcare's Avatar
I am not sure about the task, but i can try. If you find any mistake, please let me know with explanation.

void main()
       long *ptr;          //declaration of pointer variable
       int x=0;             //declaration and initialization of a variable
       printf("The value of x is:" *ptr);

Last edited by shabbir; 14Jun2012 at 09:30.. Reason: Code blocks