You are not logged in.

#1 2015-09-14 05:57:29

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Operators And Expressions Code Output:

C Programming Quizzes C Language Operators And Expressions

Directions:
Identify the correct output of the following code:

Question:
void main()
{
   int w=10, x=5, y=3, z=3;
   if( (w<x) && (y=z++) )
      printf("%d %d %d %d", w, x, y, z);
   else
      printf("%d %d %d %d", w, x, y, z);
}

Option A):
10 5 3 3
Option B):
10 5 3 4
Option C):
10 5 4 4
Option D):
10 5 4 3

Correct Answer is Option A):
10 5 3 3


Failure is the first step towards seccess.

2015-09-14 05:57:29

Advertisement
Ads By Google

Re: C Language Operators And Expressions Code Output:



Board footer