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 / chandrashekhar

In turbo c
a::2
2.0::2

GCC
a::4
2.0::2

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does typeof return in c?

640


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2123


Why clrscr is used in c?

588


Is c is a middle level language?

598


What is sorting in c plus plus?

565






What is difference between stdio h and conio h?

888


How can I open files mentioned on the command line, and parse option flags?

596


What is difference between structure and union in c programming?

571


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

681


Do you know the difference between malloc() and calloc() function?

616


How do you determine a file’s attributes?

602


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

648


what is a function method?give example?

1915


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1903


What is a constant?

636