C Programming Find the output of the following program. void main() { int i=01289; printf("%d", i); } 0713 Syntax error 713 1289 0289 0713 Syntax error 713 1289 0289 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 program will not enter into the loop. Prints the value of 0 one time only. The loop will run infinitely many times. A run time error will be generated. There will be a compilation error reported. The program will not enter into the loop. Prints the value of 0 one time only. The loop will run infinitely many times. A run time error will be generated. ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. I, II, III and IV I, II and III II, III and IV II and III I and II I, II, III and IV I, II and III II, III and IV II and III I and II ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; We cannot change the value pointed by ptr. We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the value pointed by ptr. We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above ANSWER DOWNLOAD EXAMIANS APP
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 10 11 11 10 20 21 10 10 20 21 21 10 20 21 20 10 10 11 11 10 20 21 10 10 20 21 21 10 20 21 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} 12 None of these 15 10 11 12 None of these 15 10 11 ANSWER DOWNLOAD EXAMIANS APP