Saturday, 1 December 2012

C basic questions - 4


What will the output of the program


void main(){
    int i=2;
    clrscr();
    for(i=0;i<=3;i++){
         static int i;
         i=i+8;
    }
    printf("%d",i);
    getch();
}

Note : Comment your answers



      1) Basic question 1

      2) Basic question 2

      3) Basic question 3

      4) Basic question 5


No comments:

Click Here To add Comment

Post a Comment

Blogger Widgets