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 are the restrictions of a modulus operator?
What is typedef struct in c?
what does static variable mean?
Are there namespaces in c?
Find MAXIMUM of three distinct integers using a single C statement
swap 2 numbers without using third variable?
why wipro wase
Why use int main instead of void main?
What are runtime error?
What is the meaning of 2d in c?
How do you use a 'Local Block'?
Is sizeof a keyword in c?
Explain what is a 'locale'?
What are the advantages of the functions?
Is javascript based on c?