Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output of the following C code? int main ( ) v { int year = 2 0 0 0 ; if year

What is the output of the following C code?
int main()
v {
int year =2000;
if year %4==0&& year %1000)
printf("%d", year+2);
else if (year %400==0)
printf("%d", year+5);
else
printf("%d", year+10);
return 0;
}
a.2005
b.2002
c.2010
d.2000
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the different types of casting processes?

Answered: 1 week ago