C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 33 0 Compilation Error 1 -1 33 0 Compilation Error 1 -1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is function? Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. All of these Function is a block of statements that perform some specific task. Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. All of these Function is a block of statements that perform some specific task. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about the program below?#includevoid main(){ int size, i; scanf("%d", &size); int arr[size]; for(i=1; i<=size; i++) { scanf("%d", arr[i]); printf("%d", arr[i]); }} The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the values of array are getting scanned through the loop. None of these The code is erroneous since the statement declaring array is invalid. The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the values of array are getting scanned through the loop. None of these The code is erroneous since the statement declaring array is invalid. 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[1] = 2 Compilation error a[0] = 2 a[0] = 3 a[1] = 3 a[1] = 2 Compilation error a[0] = 2 a[0] = 3 a[1] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define clrscr() 100void main(){ clrscr(); printf("%d", clrscr());} 1 100 Error 1 100 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } Linking error 3 hello Compiler Error None of these Linking error 3 hello Compiler Error None of these ANSWER DOWNLOAD EXAMIANS APP