C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 24 30 None of these 25 20 24 30 None of these 25 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);} 5 6 12 7 6 6 6 7 11 6 5 6 12 7 6 6 6 7 11 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right II and IV I and III III and IV I and II II and III II and IV I and III III and IV I and II II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} b = 3, c = 6 a = 3, c = 8 a = 4, c = 8 b = 4, c = 6 a = 4, c = 6 b = 3, c = 6 a = 3, c = 8 a = 4, c = 8 b = 4, c = 6 a = 4, c = 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 10, 11 11, 10 11, 11 10, 10 10, 11 11, 10 11, 11 10, 10 ANSWER DOWNLOAD EXAMIANS APP
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 Garbage Value 6 5 None of these 0 Garbage Value 6 5 None of these ANSWER DOWNLOAD EXAMIANS APP