CSPrograms4u
Nothing Succeeds Like Success
Monday, 23 October 2023
C PRO 32 : WAP to display address of variable using pointers
// Program
#include<stdio.h>
int main()
{
int a,*b;
printf("Enter any integer value\n");
scanf("%d",&a);
b=&a;
printf("\nValue of Entered Value=%d",*b);
printf("\nAddress of the variable=%u",b);
return 0;
}
**Author**
Sukhvir Singh
Subscribe for Video Lectures
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
‹
›
Home
View web version
No comments:
Post a Comment
Note: only a member of this blog may post a comment.