Q: What will be the output of the following 'C' program निम्नलिखित 'C' प्रोग्राम का आउटपुट क्या होगा– main ( ) { int asl; int b=5; if(a=5 || b > 10) printf ("I will certainly pass"); printf else printf ("I am not so sure about the result"); }
A.
I will certainly pass मैं निश्चित रूप से पास हो जाऊंगा
B.
I am not so sure about the result मैं परिणाम के विषय में बहुत निश्चिन्त नहीं हूँ
C.
Error/त्रुटि
D.
None of the above/उपर्युक्त में से कोई नहीं
Correct Answer:
Option A - IF हमेशा ब्लॉक के रूप में निष्पादित किया जाएगा जो a = 5 के रूप में कार्य करता है (5 से अधिक) जो हमेशा सही होगा इसलिए उपरोक्त प्रोग्राम का आउटपुट I will certaily pass प्राप्त होगा।
A. IF हमेशा ब्लॉक के रूप में निष्पादित किया जाएगा जो a = 5 के रूप में कार्य करता है (5 से अधिक) जो हमेशा सही होगा इसलिए उपरोक्त प्रोग्राम का आउटपुट I will certaily pass प्राप्त होगा।
Explanations:
IF हमेशा ब्लॉक के रूप में निष्पादित किया जाएगा जो a = 5 के रूप में कार्य करता है (5 से अधिक) जो हमेशा सही होगा इसलिए उपरोक्त प्रोग्राम का आउटपुट I will certaily pass प्राप्त होगा।
Download Our App
Download our app to know more Lorem ipsum dolor sit amet consectetur adipisicing elit.
Excepturi, esse.
YOU ARE NOT LOGIN
Unlocking possibilities: Login required for a world of personalized
experiences.