Printf MCQ 4 : Two Variables are Declared but Not Specified
Printf Multiple Choice Questions : Two Variables are Declared but Not Specified
Predict the Output of the Following Program if Given Things are -
- Two Variables are declared .
- Two Variables are initialized
#include<stdio.h> void main() { int input1 = 10,input2 = 20; printf("%d %d"); }
Options :
- 10 20
- 20 10
- 10 10
- 20 20
[toggle title=”Output”]20 10[/toggle]
Switch to Printf MCQ Home : Click Here
How and Why ?
- Undefined Behavior of Printf
- Click Here to See All Observation of Undefined Behavior