MEMORY ADDRESS OF VARIABLE

#include<stdio.h>
#include<conio.h>
void main()
{
int x=3,*p,y=4;
clrscr();
p=&x;
printf("\n\tMemory address=%u",p);
printf("\n\tValue at memory 
address=%d",*p);
p=&y;
printf("\n\tMemory address=%u",p);
printf("\n\tValue at memory 
address=%d",*p);
getch();

}
Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | MCQ Questions Syllabus Based

Programmingway@Eklavya Technosys!: JTET 2026 | MCQ Questions Syllabus Based : JTET 2026 | MCQ Questions Based on Syllabus | Information and ...