void main()
{
clrscr();
if(sizeof(!6.0))
printf("%d",sizeof(6.0,2));
else
printf("i don't know");
getch();
}
The output of this function is 4. As I can understand in the expression
if(sizeof(!6.0))-> the expressionsizeof(!6.0)returns: 0so
sizeof(0)is 4 (in 64 bit system) and expressionif(sizeof(!6.0))executes as itsTrue. But inprintf("%d",sizeof(6.0,2))the output is 4 .So I want to know why
sizeof()is returning 4 byte and how can it take two values without any warning and error by compiler.
Aucun commentaire:
Enregistrer un commentaire