C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Infinite Loop 5 5 5 5 5 Compilation Error None of these 5 4 3 2 1 Infinite Loop 5 5 5 5 5 Compilation Error None of these 5 4 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){int value1, value2=100, num=100;if(value1=value2%5) num=5;printf("%d %d %d", num, value1, value2);} 100 5 100 5 0 100 100 100 100 5 0 20 100 0 100 100 5 100 5 0 100 100 100 100 5 0 20 100 0 100 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi followed by garbage value Garbage Value hi h Error hi followed by garbage value Garbage Value hi h Error 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 WorldHello None of these Hello World World Hello WorldHello None of these Hello World World ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following pointer declaration?int *ptr, p; ptr is a pointer to integer, p is not. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ptr and p, both are pointers to integer. ptr is a pointer to integer, p is not. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ptr and p, both are pointers to integer. ANSWER DOWNLOAD EXAMIANS APP
C Programming The default parameter passing mechanism is call by value result None of these. call by value call by reference call by value result None of these. call by value call by reference ANSWER DOWNLOAD EXAMIANS APP