Programming MCQS - QUESTION DETAILS

What is the purpose of the 'sizeof' operator in C?
A. Returns size of a variable
B. Returns ASCII value
C. Returns the memory address
D. Returns pointer size

'sizeof' returns the size in bytes of a variable.

Similar Questions

What does the 'printf' function do in C?






What is the output of printf("%d", 5 << 2);?






In C, how do you declare a constant?






What is the purpose of the 'enum' keyword in C?






How do you use the 'const' keyword with a pointer in C?






What is the purpose of the 'typedef' keyword in C?






What is the role of 'calloc' function in C?






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






What is the purpose of the 'break' statement in a switch statement?






What is the output of printf("%d", sizeof(1.5));?