C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 3, c = 8 b = 3, c = 6 a = 4, c = 6 a = 4, c = 8 b = 4, c = 6 a = 3, c = 8 b = 3, c = 6 a = 4, c = 6 a = 4, c = 8 b = 4, c = 6 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 );} Prints the value of 0 one time only. A run time error will be generated. There will be a compilation error reported. The program will not enter into the loop. The loop will run infinitely many times. Prints the value of 0 one time only. A run time error will be generated. There will be a compilation error reported. The program will not enter into the loop. The loop will run infinitely many times. 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. II and III II, III and IV I, II and III I, II, III and IV I and II II and III II, III and IV I, II and III I, II, III and IV I and II ANSWER DOWNLOAD EXAMIANS APP
C Programming In C programming language, which of the following type of operators have the highest precedence Equality operators Logical operators Relational operators Arithmetic operators Equality operators Logical operators Relational operators Arithmetic operators ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 5 5 5 2 4 4 2 5 5 2 4 5 5 5 5 2 4 4 2 5 5 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=MVEDA y=EDA y=VEDA y=AMVEDA y=EXAMIANS y=MVEDA y=EDA y=VEDA y=AMVEDA y=EXAMIANS ANSWER DOWNLOAD EXAMIANS APP