C Programming Which of the following function is more appropriate for reading in a multi-word string? printf() scanf() puts() None of these gets() printf() scanf() puts() None of these gets() ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 III and IV I, III and IV II and III I and II I, II and III III and IV I, III and IV II and III I and II I, II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 9 2 1 0.25 0.5 9 2 1 0.25 0.5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? Syntax error No output 6 Runtime error 8 Syntax error No output 6 Runtime error 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static char *s[] = {"black", "white", "yellow", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s",*--*++p + 3); } te ck ow et te ck ow et ANSWER DOWNLOAD EXAMIANS APP
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);} Error Garbage value 3 6 Error Garbage value 3 6 ANSWER DOWNLOAD EXAMIANS APP