|
Newbie Member
|
|
| 6Jun2012,23:42 | #11 |
|
Excellent example how to use pointer in c.
|
|
Banned
|
|
| 14Jun2012,09:27 | #12 |
|
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);
}
|
