Lesson 6 of 23
&&, ||, ! आणि switch
9 min 25 XP
&& (AND) दोन्ही बाजू true असताना true, || (OR) कोणतीही एक असताना, आणि ! (NOT) condition उलटवतो. Ternary operator condition ? a : b दोन values पैकी एक निवडतो.
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.switch एका value ची अनेक cases शी तुलना करतो. प्रत्येक case break ने संपवा, नाहीतर execution पुढच्या case मध्ये घसरते.
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.