C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 0 Infinite loop Syntax error 10 0123456789 0 Infinite loop Syntax error 10 0123456789 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 erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the statement declaring array is invalid. The code is correct and runs successfully. None of these The code is erroneous since the values of array are getting scanned through the loop. 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 statement declaring array is invalid. The code is correct and runs successfully. None of these The code is erroneous since the values of array are getting scanned through the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr{7} None of these arr[6] arr[7] arr{6} arr{7} None of these arr[6] arr[7] arr{6} ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} M N None of These P M N None of These P ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } Will make an infinite loop. Some address will be printed. None of these. Error Will make an infinite loop. Some address will be printed. None of these. Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=3 j=2 the behavior is undefined i=5 j=2 i=4 j=2 i=3 j=2 the behavior is undefined i=5 j=2 i=4 j=2 ANSWER DOWNLOAD EXAMIANS APP