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 / desh deepak

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

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

Is This Answer Correct ?    18 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %p mean?

1157


What is the difference between text files and binary files?

1398


Explain what are reserved words?

1160


What is function definition in c?

1118


What is the full form of getch?

1355


There seem to be a few missing operators ..

1096


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

1076


Explain the red-black trees?

1202


Which is more efficient, a switch statement or an if else chain?

1081


Is it possible to initialize a variable at the time it was declared?

1258


What are header files in c programming?

1182


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1182


What is the scope of static variable in c?

1079


How can you draw circles in C?

1197


Explain is it better to bitshift a value than to multiply by 2?

1250