Mathematics · Programming Aptitude
What will be the output of the following C program? #include int main() { int a[5]; for (int i = 0; i < 5; i++) { a[i] = i * i - 2 * i + 1; } for (int i = 0; i < 5; i++) { printf('%d ', a[i]); } return 0; }
- 110149✓
- 211249
- 310249
- 412349
Correct answer
10149
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 Mathematics?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Programming Aptitude?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Mathematics · Programming Aptitude