Computer Science · C Programming
C में if-else कथन के बारे में निम्नलिखित में से कौन सा कथन सही नहीं है?
- 1if और else कथन का डिफ़ॉल्ट स्कोप केवल अगला कथन ही होता है। इसलिए, एकाधिक कथनों को निष्पादित करने के लिए उन्हें ब्रेसिज़ {} के अंदर लिखा जाना चाहिए।
- 2एक if का हमेशा else के साथ जुड़ा होना आवश्यक नहीं है। हालाँकि, एक else हमेशा if के साथ ही जुड़ा होना चाहिए।
- 3यदि कोई शर्त सत्य (true) है, तो इसे 1 से बदल दिया जाता है, यदि यह असत्य (false) है, तो इसे 0 से बदल दिया जाता है।
- 4एक if-else कथन को दूसरे if-else कथन के अंदर नेस्ट (nested) नहीं किया जा सकता है।✓
सही उत्तर देखें
एक if-else कथन को दूसरे if-else कथन के अंदर नेस्ट (nested) नहीं किया जा सकता है।
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on C Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · C Programming