C Programming What will be the output of the given program?#includevoid 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 10 10 20 21 21 10 10 11 11 10 20 21 20 10 20 21 10 10 20 21 21 10 10 11 11 10 20 21 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Runtime error 4 5 6 7 4 1 2 3 4 Syntax error Runtime error 4 5 6 7 4 1 2 3 4 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 1 0 0 1 3 0 0 0 1 2 0 0 0 0 2 1 0 0 1 3 1 0 0 1 3 0 0 0 1 2 0 0 0 0 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a declaration must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a declaration must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which one of the following is not a valid identifier? 1examians exam_veda _examians examians1 1examians exam_veda _examians examians1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} There will be a compilation error reported. The loop will run infinitely many times. A run time error will be generated. The program will not enter into the loop. Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. A run time error will be generated. The program will not enter into the loop. Prints the value of 0 one time only. ANSWER DOWNLOAD EXAMIANS APP