C Programming What will be the output of the given program?#includevoid main(){float num=5.6;switch(num){case 5:printf("5");case 6:printf("6");default : printf("0");break;}printf("%d", num);} Complier error 6 5.600000 0 5.600000 5 5.600000 Complier error 6 5.600000 0 5.600000 5 5.600000 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} Compiler Error 5 0 7 6 Compiler Error 5 0 7 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} make an infinite loop Some address will be printed Error None of These make an infinite loop Some address will be printed Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Segmentation fault/runtime crash 10 Compiler time error Undefined behavior Segmentation fault/runtime crash 10 Compiler time error Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} Error garbage values 0 0 0 1 1 1 Error garbage values 0 0 0 1 1 1 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 is pointer to integer, p may or may not be. ptr and p both are not pointers to integer. ptr and p, both are pointers to integer. ptr is a pointer to integer, p is not. ptr is pointer to integer, p may or may not be. ptr and p both are not pointers to integer. ptr and p, both are pointers to integer. ANSWER DOWNLOAD EXAMIANS APP