Which of the following statements are correct about the program below?#include<stdio.h>void 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 erroneous since the values of array are getting scanned through the loop. None of these The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is correct and runs successfully. The code is erroneous since the statement declaring array is invalid. TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} 20 Compiler Error 2 Linker Error TRUE ANSWER : ? YOUR ANSWER : ?
Which is the only function all C programs must contain? main() system() start() printf() getch() TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi followed by garbage value Garbage Value h Error hi TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ printf("%p", main);} Some address will be printed None of These Error make an infinite loop TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char not; not = !2; printf("%d", not);} 2 0 None of These Garbage Value TRUE ANSWER : ? YOUR ANSWER : ?
In C programming language, which of the following type of operators have the highest precedence Equality operators Arithmetic operators Logical operators Relational operators TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); Infinite loop 9 10 11 12 13 10 11 12 13 14 15 10 11 12 13 14 None of these TRUE ANSWER : ? YOUR ANSWER : ?
An array elements are always stored in ________ memory locations. Random Sequential Sequential and Random None of these TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following operator takes only integer operands? * + None of these % / TRUE ANSWER : ? YOUR ANSWER : ?