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

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

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