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


Please Help Members By Posting Answers For Below Questions

What are the restrictions of a modulus operator?

641


What is typedef struct in c?

592


what does static variable mean?

657


Are there namespaces in c?

570


Find MAXIMUM of three distinct integers using a single C statement

628






swap 2 numbers without using third variable?

666


why wipro wase

1833


Why use int main instead of void main?

601


What are runtime error?

634


What is the meaning of 2d in c?

617


How do you use a 'Local Block'?

728


Is sizeof a keyword in c?

586


Explain what is a 'locale'?

587


What are the advantages of the functions?

610


Is javascript based on c?

595