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

Find the output?
void main()
{float a=2.0;
printf("\nSize of a ::%d",sizeof(a));
printf("\nSize of 2.0 ::%d",sizeof(2.0));}

Answer Posted / aravind

ok guys.
Here ans is 4 and 4.
I think %d specifier is for integer and it takes a=2 and prints 4 bytes for gcc and 2 bytes for turbo. Sizeof(2.0) also takes %d integer specifier and prints 4.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is strcpy() function?

1108


What are the salient features of c languages?

1073


How does #define work?

1036


What is the acronym for ansi?

1017


Explain the concept and use of type void.

1076


What is the collection of communication lines and routers called?

1085


What is the difference between arrays and pointers?

1091


How #define works?

1070


How will you find a duplicate number in a array without negating the nos ?

2106


In C language what is a 'dangling pointer'?

1086


What are the different file extensions involved when programming in C?

1223


What are the advantages and disadvantages of a heap?

1171


List some of the dynamic data structures in C?

1213


Explain what is the advantage of a random access file?

1094


Should I learn data structures in c or python?

996