Multiple choice technology programming languages

main() { int i = 400, j = 300; printf(“%d %d”); } [in Turbo C complier]

  1. 400 300

  2. 300 400

  3. junk value

  4. error

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

In Turbo C, local variables are allocated on the stack. Calling printf with format specifiers but omitting variables causes it to retrieve the values directly from the stack locations where variables i and j reside, printing 400 300 rather than throwing an error.