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

Where static variables are stored in memory in c?

1003


How many loops are there in c?

1115


What is the most efficient way to count the number of bits which are set in an integer?

1064


How can I write functions that take a variable number of arguments?

1130


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1306


What is the difference between NULL and NUL?

1296


What is indirection in c?

1074


What is the collection of communication lines and routers called?

1128


What does it mean when the linker says that _end is undefined?

1099


What is a static function in c?

1170


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2475


What are the types of data structures in c?

1156


Is null always defined as 0(zero)?

1116


Difference between MAC vs. IP Addressing

1150


What are keywords c?

1032