Write a program of dereferencing with values


 

/* Write a program of  dereferencing with values*/

#include<iostream.h>

#include<conio.h>

void main()

{

int x;

clrscr();

int *ptr_p;

x=5;

ptr_p=&x;

cout<<“*ptr_p=”<<*ptr_p;

getch();

}

/* output:

*ptr_p=5*/

Related Posts

Comments are closed.