aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming Fundamentals
  • If a=10 and b=20, what is the value of c=a>b?
Multiple choice

If a=10 and b=20, what is the value of c=a>b?

  1. 10

  2. 20

  3. 15

  4. 0

  5. 1

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is conditional operator when condition is true, then the value of c=a and in case of false c=b=20.

Keep practicing — related questions

  • If a+b=10; then (a+b/2)+(b+a/2)=
  • If a= 10Then a=
  • A, B and C were partners sharing profits in the ratio 5 : 4 : 1. 'A' retired and new ratio was decided as 3...
  • Find out the error in the following program. void main() { int t,c; scanf(Enter the values of t and c = %d ...
  • Which of the following B-lymphocytes are responsible for secreting antibodies into the blood circulation? a...
  • What will be the output of the program? class A { final public int GetResult(int a, int b) { return 0; } } ...
  • What will be the output of the following code snippet? main() { int a=11,b; clrscr(); for(a%10;a++); printf...
  • The book value of investment is Rs. 1, 20,000 and investment fluctuation fund is appearing at Rs. 15,000. T...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy