πŸ“Š C Programming
Q. Which of the following initializes all elements of an array to zero?
  • (A) int arr[] = {0};
  • (B) int arr[5] = {0,0,0};
  • (C) int arr[5] = {1};
  • (D) int arr[5];
πŸ’¬ Discuss
βœ… Correct Answer: (A) int arr[] = {0};

Explanation: Initializing the first element as 0 initializes all to 0 in C.

Explanation by: Mr. Dubey
Initializing the first element as 0 initializes all to 0 in C.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
67
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate