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);} 6 3 Error Garbage value 6 3 Error Garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? printf() None of these gets() scanf() puts() printf() None of these gets() scanf() puts() ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine the Final Output:void main(){ printf("\nab"); printf("\bsi"); printf("\rha");} hai absiha haasi asiha hai absiha haasi asiha ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print garbage value will print Hello World None of these. Compilation Error will print garbage value will print Hello World None of these. 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. 2, 3 1, 4 None of these 2, 4 1 2, 3 1, 4 None of these 2, 4 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));} 1 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 ANSWER DOWNLOAD EXAMIANS APP