GATE 2020
October 16, 2023
Software-Engineering
October 16, 2023
GATE 2020
October 16, 2023
Software-Engineering
October 16, 2023

Programming

Question 204
What will be output if you will compile and execute the following C code?

void main()

{

printf(“%d”,sizeof(5.2));
}

A
4
B
8
C
2
D
16
Question 204 Explanation: 
Size of is a special operator will return number of bytes of data types. By default system will take integer data type,if we are not specifying any data type. Total size is 4 bytes.
Correct Answer: A
Question 204 Explanation: 
Size of is a special operator will return number of bytes of data types. By default system will take integer data type,if we are not specifying any data type. Total size is 4 bytes.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!