C Programming What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);} 3 2 1 no output infinity loop 3 2 1 0 3 2 1 no output infinity loop 3 2 1 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include#define clrscr() 100void main(){ clrscr(); printf("%dn", clrscr());} 1 0 100 Error 1 0 100 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 1 2 2 1 2 2 1 1 1 2 2 1 2 2 1 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 5 2 5 5 2 4 4 5 5 5 2 4 5 2 5 5 2 4 4 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=EXAMIANS y=MVEDA y=AMVEDA y=EDA y=VEDA y=EXAMIANS y=MVEDA y=AMVEDA y=EDA y=VEDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? power(x, 2) pow(x, 2) pow(2, x) sqr(x) power(2, x) power(x, 2) pow(x, 2) pow(2, x) sqr(x) power(2, x) ANSWER DOWNLOAD EXAMIANS APP