What Will Be The Output Of The Following Program? https://www.skillvertex.com/blog Fri, 10 May 2024 11:37:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 https://www.skillvertex.com/blog/wp-content/uploads/2024/01/favicon.png What Will Be The Output Of The Following Program? https://www.skillvertex.com/blog 32 32 What Will Be The Output Of The Following Program? https://www.skillvertex.com/blog/what-will-be-the-output-of-the-following-program/ https://www.skillvertex.com/blog/what-will-be-the-output-of-the-following-program/#respond Fri, 10 May 2024 11:37:50 +0000 https://www.skillvertex.com/blog/?p=3081 Read more]]> #include<stdio.h> int c[10] = {1,2,3,4,5,6,7,8,9,10}; main() { int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b); }

A) 20

B) 24

C) 25

D) 30

E) None of these

What Will Be The Output Of The Following Program?

Ans. Option C) 25 is the Correct Answer.

Hridhya Manoj

Hello, I’m Hridhya Manoj. I’m passionate about technology and its ever-evolving landscape. With a deep love for writing and a curious mind, I enjoy translating complex concepts into understandable, engaging content. Let’s explore the world of tech together

]]>
https://www.skillvertex.com/blog/what-will-be-the-output-of-the-following-program/feed/ 0