What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Compilation Error 5 5 5 5 5 Infinite Loop 5 4 3 2 1 None of these TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=0 x=5 x=1 x=4 Error TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 6 7 5 None of These TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} None of These will print Hello World Can't Say Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the given program?#include<stdio.h>void main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 20 21 20 10 20 21 10 10 10 11 11 10 20 21 21 TRUE ANSWER : ? YOUR ANSWER : ?
C programs are converted into machine language with the help of A compiler An operating system None of these. An Editor TRUE ANSWER : ? YOUR ANSWER : ?
What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The variable k can’t be initialized. The increment should always be ++k . The commas should be semicolons. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>void main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} hello garbage value hello 5 None of These Error TRUE ANSWER : ? YOUR ANSWER : ?
Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5? 110 10 450 -110 -10 TRUE ANSWER : ? YOUR ANSWER : ?
In C programming language, which of the following type of operators have the highest precedence Arithmetic operators Equality operators Logical operators Relational operators TRUE ANSWER : ? YOUR ANSWER : ?