C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 6 7 5 8 9 6 7 5 8 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following operator takes only integer operands? * + % / None of these * + % / None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? None of these int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } int funct(); void funct(int) { printf(“Hello"); } None of these int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } int funct(); void funct(int) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming int a[5] = {1,2,3}What is the value of a[4]? Garbage Value 0 2 3 1 Garbage Value 0 2 3 1 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);} Undefined behavior Segmentation fault/runtime crash 10 Compiler time error Undefined behavior Segmentation fault/runtime crash 10 Compiler time error ANSWER DOWNLOAD EXAMIANS APP
C Programming What number will z in the sample code given below?int z, x=5, y= -10, a=4, b=2;z = x++ - --y*b/a; 9 10 6 5 11 9 10 6 5 11 ANSWER DOWNLOAD EXAMIANS APP