C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 1 0 -1 33 Compilation Error 1 0 -1 33 Compilation Error 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. 1, 4 1 2, 4 None of these 2, 3 1, 4 1 2, 4 None of these 2, 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} 300 Error %d\n None of These 300 Error %d\n None of These 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); } Compiler Error Linking error None of these 3 hello Compiler Error Linking error None of these 3 hello ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} 1 None of These 10 Garbage Value 1 None of These 10 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} 5 0 6 None of these Garbage Value 5 0 6 None of these Garbage Value ANSWER DOWNLOAD EXAMIANS APP