Physics · Computer Science
What is the output of the given C program? #include int main(void) { int i, s1=0, s2=0; int a[6]={10, 11, 12, 13, 14, 15}; for (i=0; i<6; i++) { if (a[i]%20) s1 = s1+a[i]; else s2 = s2+a[i]; } printf('%d,%d ', s1, s2); return 0; }
- 136, 0
- 20, 39
- 336, 39✓
- 4None of these
Correct answer
36, 39
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 Physics?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Computer Science?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Physics · Computer Science