C Programming What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} 0 5 Garbage Value None of these 6 0 5 Garbage Value None of these 6 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) 50 None of these 30 10 15 50 None of these 30 10 15 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. 2, 3 1, 4 2, 4 1 None of these 2, 3 1, 4 2, 4 1 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator from the following has the lowest priority? Conditional operator Comma operator Division operator Assignment operator Unary-operator Conditional operator Comma operator Division operator Assignment operator Unary-operator ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} Error None of These %d\n 300 Error None of These %d\n 300 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 2 9 1 0.5 0.25 2 9 1 0.5 0.25 ANSWER DOWNLOAD EXAMIANS APP