C Programming What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} 5 None of these 6 4 7 5 None of these 6 4 7 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 Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte) 10 50 30 None of these 15 10 50 30 None of these 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is the correct way of declaring a float pointer: None of these *float ptr; float ptr; float *ptr; None of these *float ptr; float ptr; float *ptr; ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? int funct(); int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } None of these void funct(x) { printf(“Hello"); } int funct(); int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } None of these void funct(x) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includeint main(){ int arr[1] = {10}; printf("%d", 0[arr]); return 0;} 10 None of these 6 1 0 10 None of these 6 1 0 ANSWER DOWNLOAD EXAMIANS APP