What will be the output of the following C code?
#include <stdio.h>
printf("%d", sizeof(strlen("HELLOWORLD")));
#include <stdio.h>
printf("%d", sizeof(strlen("HELLOWORLD")));
A. Output, 4
B. Output, 10
C. Output, 16
D. Error, sizeof cannot evaluate size of a function
Answer: Option A
Related Questions on Operators and Expressions
What does the ++ operator do in C when applied to a variable?
A. Decrements by 1
B. Adds 1
C. Doubles the value
D. Leaves it unchanged
Join The Discussion