Computer Science · Arrays
Which of the following is the correct syntax for the initialization of a one-dimensional array in C?
- 1int num[4] = {1, 2, 3, 4};✓
- 2int num[4] = 0;
- 3int num[4] = {1 2 3 4};
- 4int num[4] = {1; 2; 3; 4};
Correct answer
int num[4] = {1, 2, 3, 4};
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Arrays?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Arrays