Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program for size of a data type without using
sizeof() operator?

Answer Posted / mazhar shaikh

datatype a,*p,*q;
p=&a;
q=p+1;
cout<<abs(int(p)-int(q))<<endl;

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about block scope in c?

1098


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1227


What does dm mean sexually?

1325


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1355


What is string constants?

1156


What is the use of pragma in embedded c?

1063


How does #define work?

1085


Calculate 1*2*3*____*n using recursive function??

2048


Explain main function in c?

1088


What are different types of operators?

1047


Difference between strcpy() and memcpy() function?

1158


What is integer constants?

1086


What is static and auto variables in c?

1091


Write a factorial program using C.

1087


Is multithreading possible in c?

1020