You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Operators And Expressions Correct Output:

C Programming Quizzes C Language Operators And Expressions

Directions:
Choose the correct output for the following program.

Question:
#include<stdio.h>
void main()
{
   int a=10, b=11, c=13, d;
   d = (a=c, b+=a, c=a+b+c);
   printf("%d %d %d %d", d, a, b, c);
}

Option A):
50, 13, 24, 13
Option B):
50, 13, 11, 13
Option C):
13, 10, 24, 50
Option D):
50, 13, 24, 50

Correct Answer is Option D):
50, 13, 24, 50


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-14 05:51:29

Advertisement
Ads By Google

Re: C Language Operators And Expressions Correct Output:



\n

Board footer