Question discussion

What is the primary restriction on nested functions in C?

358844Medium DSSSB TGT Computer Science 0 replies 0 views
0
What is the primary restriction on nested functions in C?
  • ANested functions are not allowed in standard C but are supported as extensions in some compilers.
  • BNested functions must be declared as inline.
  • CNested functions must be defined before their enclosing function.
  • DNested functions are fully supported in standard C.
Correct answer: A

Explanation

Standard C does not allow one function to be defined inside another. Some compilers (like GCC) support it as an extension.

Discussion 0

Nobody has replied yet. Start the discussion!