You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a c program to create Initialize & Access pointer Variable
#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2,*ptr;
printf("\nEnter any Number:");
scanf("%d",&n1);
ptr=&n1;
printf("\n VALUE IN ADRESS=%u is %d",ptr,*ptr);
printf("\nEnter any Number:");
scanf("%d",&n2);
ptr=&n2;
printf("\n VALUE IN ADRESS=%u is %d",ptr,*ptr);
}
The text was updated successfully, but these errors were encountered:
Write a c program to create Initialize & Access pointer Variable
#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2,*ptr;
printf("\nEnter any Number:");
scanf("%d",&n1);
ptr=&n1;
printf("\n VALUE IN ADRESS=%u is %d",ptr,*ptr);
printf("\nEnter any Number:");
scanf("%d",&n2);
ptr=&n2;
printf("\n VALUE IN ADRESS=%u is %d",ptr,*ptr);
}
The text was updated successfully, but these errors were encountered: