Array in C Language - Quiz

  • A int num[6] = { 2, 4, 12, 5, 45, 5 };
  • B int n{} = { 2, 4, 12, 5, 45, 5 };
  • C int n{6} = { 2, 4, 12 };
  • D int n(6) = { 2, 4, 12, 5, 45, 5 };
  • A Address of the array.
  • B Values of the first elements of the array.
  • C Address of the first element of the array.
  • D Number of element of the array.
  • A 0 0
  • B Garbage value 0
  • C 0 Garbage Value
  • D Garbage vlaue Garbage Value
  • A Initialization is a part of definition
  • B It is a declaratrion
  • C It is a formal parameter
  • D All of these
  • A 2
  • B 10
  • C 20
  • D Theoratically no limit. The only practical limits are memory size and compilers.