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 / deepshree sinha
2
2
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Why malloc is faster than calloc?
Explain the properties of union. What is the size of a union variable
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
explain what are actual arguments?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Is fortran still used today?
Explain what is the difference between text files and binary files?
What is the difference between malloc calloc and realloc in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What does sizeof return c?
What are enumerated types?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is atoi and atof in c?
What is main () in c?