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 7 5 9 6 8 7 5 9 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program if the array begins at address 65486?#includevoid main(){ int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u", arr, &arr);} 65486, 65487 65486, 65490 65486, 65486 None of these 65486, 65488 65486, 65487 65486, 65490 65486, 65486 None of these 65486, 65488 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the base data type of a pointer variable by which the memory would be allocated to it? No data type Depends upon the type of the variable to which it is pointing. unsigned int int float No data type Depends upon the type of the variable to which it is pointing. unsigned int int float ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 None of these 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 -5 15 1 30 10 -5 15 1 30 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 1 2, 3 2, 4 1, 4 None of these 1 2, 3 2, 4 1, 4 None of these ANSWER DOWNLOAD EXAMIANS APP