OA. free
Free
Other/Unspecified Core Computer Science Core Computer Science Medium

What will be the output of the following C code snippet?

Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.

What will be the output of the following C code snippet?

#define TO_STRING(x) #x
#define VAR_NAME(m) TO_STRING(var_##m)
int main() {
    int var_25 = 100;
    printf("%s = %d", VAR_NAME(25), var_25);
    return 0;
}
Choose one option.
Show answer & explanation
Answer: A. A) var_25 = 100

Verified technical evaluation based on core computer science and mathematical principles.

Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.