C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Garbage value 3 6 Error Garbage value 3 6 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command has # as the first character need not start on the first column need not start on a new line comes before the first executable statement has # as the first character need not start on the first column need not start on a new line comes before the first executable statement ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54554 45445 45545 54544 54554 45445 45545 54544 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }} three Error None of These zero three Error None of These zero 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);} a = 4, c = 6 b = 3, c = 6 b = 4, c = 6 a = 3, c = 8 a = 4, c = 8 a = 4, c = 6 b = 3, c = 6 b = 4, c = 6 a = 3, c = 8 a = 4, c = 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} 10 Segmentation fault/runtime crash Undefined behavior Compiler time error 10 Segmentation fault/runtime crash Undefined behavior Compiler time error ANSWER DOWNLOAD EXAMIANS APP