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...

how to find the size of the data type like int,float
without using the sizeof operator?

Answer Posted / vishnu948923

void main()
{
char *ptr1,*ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);

printf("%u",ptr2-ptr1);
}

Is This Answer Correct ?    29 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does malloc () calloc () realloc () free () do?

1006


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1245


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1920


What is the difference between #include and #include 'file' ?

1004


How will you delete a node in DLL?

1223


What is the use of printf() and scanf() functions?

1073


Does sprintf put null character?

990


What header files do I need in order to define the standard library functions I use?

1001


What is memcpy() function?

1051


How old is c programming language?

969


What is a example of a variable?

952


How can type-insensitive macros be created?

1131


How many levels of pointers have?

991


What does the c preprocessor do?

1056


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2077