C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} Runtime error 100 10012 g##g2 Syntax error Runtime error 100 10012 g##g2 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? power(2, x) pow(2, x) pow(x, 2) sqr(x) power(x, 2) power(2, x) pow(2, x) pow(x, 2) sqr(x) power(x, 2) ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 4 4 10 5 4 3 10 5 3 4 10 5 3 3 10 5 5 5 10 5 4 4 10 5 4 3 10 5 3 4 10 5 3 3 10 5 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} 3 Error Garbage value 6 3 Error Garbage value 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str1[20] = "Hello", str2[20] = " World"; printf("%s", strcpy(str2, strcat(str1, str2)));} Hello Hello World WorldHello World None of these Hello Hello World WorldHello World None of these 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 );} The program will not enter into the loop. Prints the value of 0 one time only. A run time error will be generated. The loop will run infinitely many times. There will be a compilation error reported. The program will not enter into the loop. Prints the value of 0 one time only. A run time error will be generated. The loop will run infinitely many times. There will be a compilation error reported. ANSWER DOWNLOAD EXAMIANS APP