Note: (Restricted functionality due to obvious reasons!)

For Mobile-Ease ⇓

Minimal Code ( Raw-View ) :
#include<iostream> #include<conio.h> #include<string.h> #include<sstream> using namespace std; struct LL{int posNum; struct LL *next_RCLL; } *start = new LL; int main(){ int j=10, ar[7], *ip; float f=2.5, *fp; char c='h', car[8], *cp; ip = &j; fp = &f; cp = &c; // special case char *pointer -> string cout<<"Enter string into char*cp : "; cin>>cp; // inputs string ( upto space/return ) cout<<"\n\n -- Sizes of :\n pointer(int) -ip , int - j , int-array - ar[7] :"; cout<<"\t {"<<sizeof(ip)<<" , "<<sizeof(j)<<" , "<<sizeof(ar)<<" } "; cout<<"\n\n -- Sizes of :\n pointer(char) -cp , char - c , char-array - car[8] :"; cout<<"\t{ "<<sizeof(cp)<<" , "<<sizeof(c)<<" , "<<sizeof(car)<<" } "; cout<<"\n\n ---- Values of pointers : \n ip (int) , fp (float) , cp (char) :"; cout<<"\t{ "<<ip<<" , "<<fp<<" , "<<cp<<" } "; cout<<"\n\n ---- Values 'at' pointers : \n ip (int) , fp (float) , cp (char) :"; cout<<"\t{ "<<*ip<<" , "<<*fp<<" , "<<*cp<<" } "; cout<<"\n\n\n \t -------End----------- \n"; getch(); return 0; }