#include <iostream.h> #include <conio.h> void main() { clrscr(); char c = 'a'; int i=10; double d=15; int * iptr = &i; char * cptr = &c; double * dptr = &d; cout << "The address of integer value is " << iptr << endl; cout << "the address of character value is "<< cptr << endl; cout << dptr << endl; cout << sizeof(i); << endl; cout << sizeof(d); <<endl; cout << sizeof(c); <<endl; cout << sizeof(cptr); << endl; cout << sizeof(iptr); << endl; cout << sizeof(dptr); << endl; getch(); }
cout
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)