Multiple choice technology programming languages

void main() { int Add() { return 50; } printf("%d",Add()); }

  1. Compilation Error - Cannot define Function inside Function

  2. 50

  3. Cant say

  4. Some Random Number

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Nested functions (functions defined inside other functions) are a GCC extension, not standard C. When compiled with GCC, this code works correctly and prints 50. Standard C compilers would reject this, but the question assumes GCC compilation based on the correct answer being 50.