#include<stdio.h>
#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int a=5;
char c='k';
float f=9.6;
int *p=&a;
char *q=&c;
float *r=&f;
cout<<*p<<endl<<*q<<endl<<*r<<endl;
cout<<sizeof(p)<<endl<<sizeof(q)<<endl<<sizeof(r)<<endl;
cout<<p<<endl<<&q<<endl<<r<<endl;
getch();
return 0;
}
No comments:
Post a Comment