C Programming Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} garbage values Error 0 0 0 1 1 1 garbage values Error 0 0 0 1 1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? All of these It associates from the right It is a unary operator The operand can come before or after the operator It cannot be applied to an expression All of these It associates from the right It is a unary operator The operand can come before or after the operator It cannot be applied to an expression 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);} NOITANIMAXE NOITANIMAXE C No output at all. C Syntax error NOITANIMAXE NOITANIMAXE C No output at all. C Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 4 8 5 5 2 4 5 2 5 5 2 4 4 8 5 5 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 2 a[1] = 2 a[1] = 3 Compilation error a[0] = 3 a[0] = 2 a[1] = 2 a[1] = 3 Compilation error a[0] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); -1 1 0 Compilation Error 33 -1 1 0 Compilation Error 33 ANSWER DOWNLOAD EXAMIANS APP