C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 10..50 10..10 0 Error 10..50 10..10 0 Error ANSWER DOWNLOAD EXAMIANS APP
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);} 25 None of these 20 30 24 25 None of these 20 30 24 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is used to find the first occurrence of a given string in another string? strnset() strchr() None of these strrchr() strstr() strnset() strchr() None of these strrchr() strstr() ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? None of these arr{7} arr{6} arr[6] arr[7] None of these arr{7} arr{6} arr[6] arr[7] ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);} 1 complier error -1 1 -1 -1 1 -1 1 1 complier error -1 1 -1 -1 1 -1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming void main(){ int a=10, b; b = a++ + ++a; printf("%d %d %d %d", b, a++, a, ++a);}what will be the output when following code is executed? 12 10 11 13 22 12 12 13 22 13 14 14 22 11 11 11 22 14 12 13 12 10 11 13 22 12 12 13 22 13 14 14 22 11 11 11 22 14 12 13 ANSWER DOWNLOAD EXAMIANS APP