C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); -1 Compilation Error 0 33 1 -1 Compilation Error 0 33 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the correct output of the following program?#includevoid main(){ char str[] = "C EXAMINATION", rev[17]; int i = strlen(str), j=0; for( ; i>=0; rev[j++] = str[i--]) rev[j] = str[j] ; puts(rev);} No output at all. NOITANIMAXE C Syntax error C NOITANIMAXE No output at all. NOITANIMAXE C Syntax error C NOITANIMAXE ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 0 0 0 1 3 1 0 0 1 2 0 0 0 0 2 1 0 0 1 3 0 0 0 1 3 1 0 0 1 2 0 0 0 0 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} 4 5 6 7 8 9 10 4 5 6 7 8 9 None of these 1 2 3 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 10 4 5 6 7 8 9 None of these 1 2 3 4 5 6 7 8 9 1 2 3 10 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 None of these 1, 4 1 2, 4 2, 3 None of these 1, 4 1 2, 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 30 1 -5 10 15 30 1 -5 10 15 ANSWER DOWNLOAD EXAMIANS APP