Skip to content

Tag Archives: C Quiz – 111

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");… Read More
Pick the best statement for the below program: #include "stdio.h"     void fun(int n) {    int idx;    int arr1[n] = {0};    int arr2[n];        for… Read More
Pick the best statement for the below: int arr[50] = {0,1,2,[47]=47,48,49}; (A) This isn’t allowed in C and it’ll give compile error (B) This is… Read More
Pick the best statement for the following program snippet: #include "stdio.h" void foo(void) {  static int staticVar;  staticVar++;  printf("foo: %d\n",staticVar); }    void bar(void) {… Read More
Pick the best statement for the following program snippet: #include <stdio.h>    int main() {  int var;  /*Suppose address of var is 2000 */   … Read More

Start Your Coding Journey Now!