Programming MCQS - QUESTION DETAILS

What is the output of printf("%d", sizeof(1.5));?
A. 4
B. 8
C. 2
D. 1

'sizeof(1.5)' returns the size of the double data type, which is typically 8 bytes.

Similar Questions

How do you declare a pointer in C?






Which keyword is used to prevent method overriding in Java?






How do you close a file in C?






What is the purpose of the 'strcat' function in C?






Which of the following is a marker interface in Java?






How do you create a thread in Java?






What does the 'sizeof' operator return for a pointer variable?






What is the purpose of the 'break' statement in a loop in Java?






What is the output of System.out.println("Hello" + 1 + 2);?






What is the role of the 'static' keyword in C?