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 / aravind
ok guys.
Here ans is 4 and 4.
I think %d specifier is for integer and it takes a=2 and prints 4 bytes for gcc and 2 bytes for turbo. Sizeof(2.0) also takes %d integer specifier and prints 4.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the difference between array_name and &array_name?
What are header files in c programming?
difference between object file and executable file
How can I read and write comma-delimited text?
What are high level languages like C and FORTRAN also known as?
What is file in c language?
What is an array in c?
In which layer of the network datastructure format change is done
How can I implement sets or arrays of bits?
What is binary tree in c?
Explain the properties of union.
Is array a primitive data type in c?
Is boolean a datatype in c?
What does *p++ do?
Is c# a good language?