Question:What will be output if you will compile and execute the following c code?


#include<stdio.h>
int main(){
  int a=5;
  int b=10;
  {
    int a=2;
    a++;
    b++;
  }
  printf("%d %d",a,b);
  return 0;

A 5 10 

B 6 11 

C 5 11 

D 6 10 

E Compiler error 

+ Answer
+ Report
Total Preview: 1491

Copyright © 2024. Powered by Intellect Software Ltd