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);} 6 5.600000 0 5.600000 5 5.600000 Complier error 6 5.600000 0 5.600000 5 5.600000 Complier error ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 11, 10 11, 11 10, 10 10, 11 11, 10 11, 11 10, 10 10, 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. I and II III and IV II and III II and IV I and III I and II III and IV II and III II and IV I and III ANSWER DOWNLOAD EXAMIANS APP
C Programming int a[5] = {1,2,3}What is the value of a[4]? 3 0 Garbage Value 2 1 3 0 Garbage Value 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Array passed as an argument to a function is interpreted as Address of the first element of the array. Address of the array. Number of element of the array. Values of the first elements of the array. Address of the first element of the array. Address of the array. Number of element of the array. Values of the first elements of the array. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));} 4..2 2..4 2..2 4..4 4..2 2..4 2..2 4..4 ANSWER DOWNLOAD EXAMIANS APP