Back to Home & C
//Declare a memory variable and print its address by using a pointer variable.
#include<stdio.h>
#include<conio.h>
void main()
{
int n,*p;
clrscr();
p=&n;
printf("Address of variable n=%u",p);
getch();
}
---------------------------------------------------
Output
Address of variable n = 65524
========================================================
Back to Home & C
//Declare a memory variable and print its address by using a pointer variable.
#include<stdio.h>
#include<conio.h>
void main()
{
int n,*p;
clrscr();
p=&n;
printf("Address of variable n=%u",p);
getch();
}
---------------------------------------------------
Output
Address of variable n = 65524
========================================================
Back to Home & C
No comments:
Post a Comment