Vidyalelo
C Programming · Q162

File Input Output

Programming · C Programming · question 162

Q162

What will be the output of the following C code (when 4 and 5 are entered)? #include void main() int m, n; printf("enter a number"); scanf("%d", &n); scanf("%d", &m); printf("%d %d ", n, m);

A.
Error
B.
4 junkvalue
C.
Junkvalue 5
D.
4 5
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board