Programming Languages C Objective
Mar 08, 2013

What will be output of the following c code?

void main()
 {
  int a=5;
  int b=10;
 {
  int a=2;
  a++;
  b++;
 }
  printf("%d %d",a,b);
 }

Choose the correct answer:
A) 5 11
B) 6 11
C) 5 10
D) Compiler error
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback