-->
Showing posts with label Program to input a value/number and display its address with value using pointer.. Show all posts
Showing posts with label Program to input a value/number and display its address with value using pointer.. Show all posts

Program to input a value/number and display its address with value using pointer.

//WAP to input a value/number and display its address with value using pointer.
#include<stdio.h>
#include<conio.h>
void main()
{
int *p;
int number;
printf("enter a number\n");
scanf("%d",&number);
p=&number;
printf("the address is=%d\n",p);
printf("the value is=%d\n",*p);
getch();
}