Vidyalelo
C# Programming · Q65

Operators and Expressions in C Sharp

Programming · C# Programming · question 65

Q65

What will be the output of the following C# code? static void Main(string[] args) int a , b; int c = 10; int d = 12; int e = 5; int f = 6; a = c * (d + e) / f + d; Console.WriteLine(a); b = c * ( d + e / f + d); Console.WriteLine(b); if (a b) Counterintelligence("they have same value"); Console.ReadLine();

A.
They have same value
B.
Parentheses changes values
Answer
C.
Since both have equal values, no conclusion
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board