Pointers in C language
Pointer holds the address of a variable.
How to declared and use a pointer in C programming Language.
How to declared and use a pointer in C programming Language.
Program
**********************************************
#include <stdio.h>
int main()
{
int num = 10;
int *p;
p = #
printf("Address of variable number is = %p", p);
return 0;
}
*********************************************
Output:
Address of variable number is= 0x7fff5694dc58
#include <stdio.h>
int main()
{
int num = 10;
int *p;
p = #
printf("Address of variable number is = %p", p);
return 0;
}
*********************************************
Output:
Address of variable number is= 0x7fff5694dc58
No comments:
Post a Comment