How many times below for loop will be executed?
int main(){ int i=0; for( ; ; ) printf("%d",i); return 0;}
How many times the printf statement within the while loop will be executed?
int x=1; while(x=0) printf("hello");
What will be the output of the following code segment?
int a = 100, b = 74;if (a++ > 100 && b++ > 200) printf("High values with a = %d b = %d\n", a, b);if (a++ < 100 || b++ < 200) printf("Low values with a = %d b = %d\n", a, b);
What will be output if you will compile and execute the following C code?
int main(){ int check=2; switch(check){ case 1: printf("D.W.Steyn"); case 2: printf(" M.G.Johnson"); case 3: printf(" Mohammad Asif"); default: printf(" M.Muralidaran"); } return 0;}
यदि आप निम्नलिखित सी कोड को संकलित और निष्पादित करेंगे तो आउटपुट क्या होगा?
What will be the output of the following program?
main(){ int x = 5; while ( x = = 1) x = x -1; printf ( “ %d\n”, x);}
निम्नलिखित प्रोग्राम का आउटपुट क्या होगा?
What would be value of j after the following is executed?
k=17;j=6;if (k < 10) j=8; j=j+1;j=j+2;
निम्नलिखित निष्पादित होने के बाद j का मूल्य क्या होगा?
What will be output after compilation and execution of the following code?
int main(){ int array[3]={5}; int i; for (i=0;i<=2;i++) printf("%d ",array[i]); return 0;}
निम्नलिखित कोड के संकलन और निष्पादन के बाद आउटपुट क्या होगा?
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
What will be output if you compile and execute the following ‘C’ code?
void main() {float a=5.2; if(a==5.2)printf("Equal");else if(a<5.2)printf("Less than");elseprintf("Greater than"); }
float a=5.2; if(a==5.2)printf("Equal");else if(a<5.2)printf("Less than");elseprintf("Greater than"); }
What will be the output of the following code?
main(){ int x = 0, y = 0; if(x > 0) if(y > 0) printf("True"); elseprintf("False"); }
What is the value of r after this code is executed?
r=2;k=8;if (r>3 || k>6 && r<5 ||k>10) r=9;else r=6
इस कोड के निष्पादित होने के बाद r का मान क्या है?
How many times "IndiaBIX" is get printed?
int main(){ int x; for(x=-1; x<=10; x++) { if(x < 5) continue; else break; printf("IndiaBIX"); } return 0;}
कितनी बार "IndiaBIX" छपा है?