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
What is a scope resolution operator in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Explain what is a stream?
Is c object oriented?
Explain how can I remove the trailing spaces from a string?
What is the size of enum in c?
Can the “if” function be used in comparing strings?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
Explain what is the benefit of using an enum rather than a #define constant?
By using C language input a date into it and if it is right?
What are valid signatures for the Main function?
Explain threaded binary trees?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
What is bss in c?
Why dont c comments nest?