C Programming Questions Based on Basic Concepts

Random Science Quiz

Can you name the line that is printed when the code finishes running (see instructions)?

Quiz not verified by Sporcle

How to Play
Share
Tweet
Email
Embed
CodePrinted line
int u=500;
printf(“u”);
int u=500;
printf(“%d”, u);
int u=500, v=400, w;
w= u + v;
printf(“%d”, w);
int size=4, u[size];
u[0]=2;
u[1]=3;
u[2]=4;
u[3]=3;
printf(“%d”, u[2]);
int i, size=4, u[size];
for(i=3; i>=0; i--)
{
u[i]=i+2;
}
printf(“%d”, u[3]);
int i;
for(i=9; i>=0; i--)
{
printf(“%d”, i);
}
int i, size=4, u[size];
for(i=3; i>=0; i--)
{
u[i]=i+3;
printf('%d', u[i]);
}
int i;
for(i=9; i>=0; i--)
{
if(i%2==0)
{
printf(“%d”, i);
}
}
int i;
for(i=9; i>=0; i--)
{
if(i%2==0)
{
printf(“%d”, i);
}
else
{
printf(“odd”);
}
}

You're not logged in!

Compare scores with friends on all Sporcle quizzes.
Sign Up with Email
OR
Log In

You Might Also Like...

Show Comments

Extras