जॉइन Examsbook
1465 0

प्र: Rewrite the following set of statements using conditional operators. int a =1, b ; if ( a > 10 ) b = 20;

  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर :
व्याख्या :

int a = 1, b , dummy; a > 10 ? b = 20 : dummy =1;   Note that the following would not have worked: a > 10 ? b = 20 : ;;

क्या आपको यकीन है

  त्रुटि की रिपोर्ट करें

कृपया संदेश दर्ज करें
त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई