aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C programming
  • Find the value of C. C = (a>0 && a<1)? a : ...
Multiple choice

Find the value of C. C = (a>0 && a<1)? a : b given a =10 , b = 20

  1. 10

  2. 20

  3. C will take garbage value

  4. 0 or 1

  5. None of these

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

 (a>0 && a<1)? a : b  (10>0 && 10 <1)? a :b(10>0 && 10 <1)  generate false value and b is executed.    

Keep practicing — related questions

  • If a=10 and b=20, what is the value of c=a>b?
  • What will be the result of the given code snippet in C language? main() { int x=1; clrscr(); for(;x++;x%10?...
  • Consider the following statements: 1. Saw dust is a bad conductor of heat. 2. Water at 0o C feels colder th...
  • 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...
  • Directions: For the word given above the table, match the dictionary definitions on the left (1, 2, 3, 4) w...
  • Find out the error in the following program. void main() { int t,c; scanf(Enter the values of t and c = %d ...
  • Directions: Which of the given options best represents the information in the given reading passage? Choose...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy