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 / manish soni tagore collage jai
here a as a float so 4bytes
and 2.0 is work as double.
when 2.0f work as a flaot so .
sizeof(2.0f)is 4 byte
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is data structure in c programming?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Which is better oop or procedural?
Explain the difference between call by value and call by reference in c language?
Describe newline escape sequence with a sample program?
How do you view the path?
What is the significance of an algorithm to C programming?
what is stack , heap ,code segment,and data segment
What is typedef struct in c?
When would you use a pointer to a function?
What is atoi and atof in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
State the difference between x3 and x[3].
What does #pragma once mean?