Programming Languages C Objective
Mar 07, 2013

What will be output of following c code?

#include<stdio.h>

int main(){

    int i=2,j=2;

    while(i+1?--i:j++)

         printf("%d",i);

    return 0;

}

Choose the correct answer:
B) 1
C) 2
D) -1
Detailed Explanation

No Explanation

Discussion (0)

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

Share Your Thoughts
Feedback