Tuesday, 6 April 2021

Pointer in C and C++ Qus 2

 

#include<stdio.h>

#include<iostream.h>

#include<conio.h>

main()

{

clrscr();

int a=5,b=10;

int *p;

*p=b;

cout<<&a<<endl;

cout<<&b<<endl;

cout<<p<<endl;

cout<<*p<<endl;

cout<<a<<endl;

cout<<b<<endl;

getch();

return 0;

}


1 comment: