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); 8 9 6 7 5 8 9 6 7 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Functions have .......... Block scope Function scope File scope No scope at all Local scope Block scope Function scope File scope No scope at all Local scope ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");} nullp nullq p q x nullq where x can be p or nullp depending on the value of NULL Depends on the compiler nullp nullq p q x nullq where x can be p or nullp depending on the value of NULL Depends on the compiler ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program?#include#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} None of These sizeof(i)=1 sizeof(i)=2 Compiler Error None of These sizeof(i)=1 sizeof(i)=2 Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int i = 0;printf("%d %d", i, i++); 1 1 None of these 0 0 0 1 1 0 1 1 None of these 0 0 0 1 1 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about the program below?#includevoid main(){ int size, i; scanf("%d", &size); int arr[size]; for(i=1; i<=size; i++) { scanf("%d", arr[i]); printf("%d", arr[i]); }} The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the values of array are getting scanned through the loop. None of these The code is erroneous since the statement declaring array is invalid. The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the values of array are getting scanned through the loop. None of these The code is erroneous since the statement declaring array is invalid. ANSWER DOWNLOAD EXAMIANS APP