Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

Pick the best statement for the below program:#include "stdio.h"int size = 4;int arr[size];int main(){if(arr[0])printf("Initialized to ZERO");elseprintf("Not initialized to ZERO");return 0;}(A) No compile error and it’ll print “Initialized to ZERO”.(B) No compile error and it’ll print “Not initialized to ZERO”.(C) Compile error because size of arr has been defined using variable outside any function.(D) No compile error and it’ll print either “Initialized to ZERO” or “Not initialized to ZERO” depending on what value is present at arr[0] at a particular run of the program.

Answer»
Previous Next