166 Question 166 EN + हिं GB What is the output: char s[]="hello"; cout< IN What is the output: char s[]="hello"; अदालत A 5 5 B 6 6 C 8 8 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) sizeof(s) includes null terminator: 6 bytes. व्याख्या (हिन्दी) sizeof(s) में शून्य टर्मिनेटर शामिल है: 6 बाइट्स। 🎯 Exam Perspective OOP Using C++ के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: int a[]={1,2,3}; auto [x,y,z]=a; co... What is the output: int a[2][3]={0}; cout What is the output: int a[3]={1,2,3}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
167 Question 167 EN + हिं GB What is the output: int a[3]={1,2,3}; cout< IN What is the output: int a[3]={1,2,3}; अदालत B Undefined behavior अपरिभाषित व्यवहार C 3 3 D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) a[3] is out of bounds: undefined behavior. व्याख्या (हिन्दी) a[3] सीमा से बाहर है: अपरिभाषित व्यवहार। 🎯 Exam Perspective यह सवाल OOP Using C++ category का है, और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the output: char s[]="hello"; cout What is the output: int a[]={5,4,3,2,1}; sort(a,a+5); c... What is the output: int a[]={0,1,2,3,4}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
168 Question 168 EN + हिं GB What is the output: int a[]={5,4,3,2,1}; sort(a,a+5); cout< IN What is the output: int a[]={5,4,3,2,1}; sort(a,a+5); अदालत A 1 1 B 5 5 C 3 3 D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) std::sort sorts ascending; a[0]=1. व्याख्या (हिन्दी) std::सॉर्ट आरोही प्रकार; ए[0]=1. 🎯 Exam Perspective यह प्रश्न OOP Using C++ की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: int a[5]={1,2,3,4,5}; cout What is the output: int a[][2]={{1,2},{3,4}}; cout What is the difference between array name and pointer? 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
169 Question 169 EN + हिं GB What is the output: int a[2][3]={0}; cout< IN What is the output: int a[2][3]={0}; अदालत A 00 00 B Garbage कचरा C 01 01 D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) All zero-initialized: a[0][0]=0, a[1][2]=0. Output: 00. व्याख्या (हिन्दी) सभी शून्य-प्रारंभिक: a[0][0]=0, a[1][2]=0. आउटपुट: 00. 🎯 Exam Perspective OOP Using C++ से जुड़ा यह सवाल उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the output: int a[3]={1,2,3}; cout What is the output: int a[3]={1,2,3}; cout What is the output: int a[]={1,2,3,4,5}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
170 Question 170 EN + हिं GB What is the output: int a[]={1,2,3}; int *p=a+1; cout< IN आउटपुट क्या है: int a[]={1,2,3}; int *p=a+1; अदालत A 1 1 B 2 2 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) p=a+1 points to a[1]. p[-1]=*(p-1)=a[0]=1. व्याख्या (हिन्दी) p=a+1 a[1] की ओर इंगित करता है। p[-1]=*(p-1)=a[0]=1. 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में OOP Using C++ से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: int a[]={0,1,2,3,4}; cout What is the output: int a[]={1,2,3}; cout What is the output: int a[3]={1,2,3}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
171 Question 171 EN + हिं GB What is the output: int a[]={0,1,2,3,4}; cout<<*(a+3); IN What is the output: int a[]={0,1,2,3,4}; अदालत A 3 3 C 4 4 D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) *(a+3)=a[3]=3. व्याख्या (हिन्दी) *(ए+3)=ए[3]=3. 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो OOP Using C++ का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is the output: char s[]="hello"; cout What is the output: int a[]={1,2,3}; int *p=a+1; cout What is the output: int a[]={1,2,3}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
172 Question 172 EN + हिं GB What is the output: int a[5]; cout< IN What is the output: int a[5]; अदालत B Undefined behavior अपरिभाषित व्यवहार C Garbage value कचरा मूल्य D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Uninitialized local array elements have indeterminate values; reading them is undefined behavior. व्याख्या (हिन्दी) अप्रारंभीकृत स्थानीय सरणी तत्वों में अनिश्चित मान होते हैं; उन्हें पढ़ना अपरिभाषित व्यवहार है। 🎯 Exam Perspective OOP Using C++ के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: int a[]={0,1,2,3,4}; cout What is the output: int a[3]={1,2,3}; cout What is the output: int a[]={1,2,3}; int *p=a+1; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
173 Question 173 EN + हिं GB What is VLA (Variable Length Array) in C++? IN C++ में VLA (वैरिएबल लेंथ ऐरे) क्या है? A Supported since C++11 C++11 से समर्थित B Not part of C++ standard (only C99) C++ मानक का हिस्सा नहीं (केवल C99) C Supported with dynamic memory गतिशील मेमोरी के साथ समर्थित D Same as std::vector एसटीडी::वेक्टर के समान ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) VLAs are part of C99 but NOT in the C++ standard; some compilers support them as extensions. व्याख्या (हिन्दी) वीएलए सी99 का हिस्सा हैं लेकिन सी++ मानक में नहीं; कुछ कंपाइलर एक्सटेंशन के रूप में उनका समर्थन करते हैं। 🎯 Exam Perspective यह सवाल OOP Using C++ category का है, और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the output: int a[2][3]={0}; cout What is the output: int a[]={1,2,3}; cout What is the output: int a[]={5,4,3,2,1}; sort(a,a+5); c... 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
174 Question 174 EN + हिं GB What is the output: int a[]={1,2,3,4,5}; cout< IN What is the output: int a[]={1,2,3,4,5}; अदालत A 3 3 B 2 2 C 1 1 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) a[1]=2, so a[a[1]]=a[2]=3. व्याख्या (हिन्दी) a[1]=2, तो a[a[1]]=a[2]=3. 🎯 Exam Perspective यह प्रश्न OOP Using C++ की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the difference between array name and pointer? What is the output: int a[5]; cout What is the output: int a[]={5,4,3,2,1}; sort(a,a+5); c... 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
175 Question 175 EN + हिं GB What is the output: int a[]={1,2,3}; auto [x,y,z]=a; cout< IN आउटपुट क्या है: int a[]={1,2,3}; auto [x,y,z]=a; अदालत A 1 1 B 2 2 C 3 3 D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) C++17 structured binding decomposes array: x=1,y=2,z=3. Output: 2. व्याख्या (हिन्दी) C++17 structured binding decomposes array: x=1,y=2,z=3. आउटपुट: 2. 🎯 Exam Perspective OOP Using C++ से जुड़ा यह सवाल उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the output: int a[2][3]={0}; cout What is the output: int a[]={1,2,3,4,5}; cout What is the output: int a[3]={1,2,3}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
176 Question 176 EN + हिं GB What is the difference between array name and pointer? IN ऐरे नाम और पॉइंटर के बीच क्या अंतर है? A No difference कोई फर्क नहीं B Array name is const pointer; pointer is a variable ऐरे का नाम कॉन्स्ट पॉइंटर है; सूचक एक चर है C Pointer has bounds checking पॉइंटर के पास सीमा जाँच है D Array name can be reassigned ऐरे का नाम पुनः निर्दिष्ट किया जा सकता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Array name decays to a pointer but is not a variable; you cannot assign to it (a=p is illegal). व्याख्या (हिन्दी) ऐरे का नाम एक पॉइंटर में बदल जाता है लेकिन एक वेरिएबल नहीं है; आप इसे असाइन नहीं कर सकते (a=p अवैध है)। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में OOP Using C++ से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: int a[]={5,4,3,2,1}; sort(a,a+5); c... What is the output: int a[2][3]={0}; cout What is the output: int a[5]={1,2,3,4,5}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
177 Question 177 EN + हिं GB What is the output: int a[3]={1,2,3}; cout<<&a+1-&a; IN आउटपुट क्या है: int a[3]={1,2,3}; अदालत A 1 1 B 3 3 C 12 12 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) &a is of type int(*)[3]. &a+1 advances by sizeof(a)=12. Pointer difference in units of int[3]: result=1. व्याख्या (हिन्दी) &a int(*)[3] प्रकार का है। &a+1 sizeof(a)=12 के अनुसार आगे बढ़ता है। int[3] की इकाइयों में सूचक अंतर: परिणाम=1। 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो OOP Using C++ का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is the output: int a[5]; cout What is the output: int a[]={1,2,3,4,5}; cout What is the output: int a[]={1,2,3}; int *p=a+1; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
178 Question 178 EN + हिं GB What is the output: int a[][2]={{1,2},{3,4}}; cout<<*(*a+1); IN आउटपुट क्या है: int a[][2]={{1,2},{3,4}}; अदालत A 1 1 B 2 2 C 3 3 D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) *a=a[0] (pointer to first row), *a+1=&a[0][1], *(a[0]+1)=a[0][1]=2. व्याख्या (हिन्दी) *a=a[0] (पहली पंक्ति का सूचक), *a+1=&a[0][1], *(a[0]+1)=a[0][1]=2. 🎯 Exam Perspective OOP Using C++ के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the difference between array name and pointer? What is the output: int a[3]={1,2,3}; cout What is the output: char s[]="hello"; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
179 Question 179 EN + हिं GB What is the output: int a[5]={1,2,3,4,5}; cout< IN आउटपुट क्या है: int a[5]={1,2,3,4,5}; अदालत A 5 5 C Undefined behavior अपरिभाषित व्यवहार D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) a[5] is one past the end; accessing it is undefined behavior. व्याख्या (हिन्दी) a[5] अंत से एक अतीत है; इसे एक्सेस करना अपरिभाषित व्यवहार है। 🎯 Exam Perspective यह सवाल OOP Using C++ category का है, और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is VLA (Variable Length Array) in C++? What is the output: int a[3]={1,2,3}; cout What is the output: int a[5]; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
180 Question 180 EN + हिं GB What is the output: int a[]={1,2,3}; cout< IN आउटपुट क्या है: int a[]={1,2,3}; अदालत A 3 3 B 1 1 D Compile error संकलन त्रुटि ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) std::end(a)-std::begin(a) = 3 (number of elements). व्याख्या (हिन्दी) std::end(a)-std::begin(a) = 3 (तत्वों की संख्या)। 🎯 Exam Perspective यह प्रश्न OOP Using C++ की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: int a[3]={1,2,3}; cout What is the output: char s[]="hello"; cout What is the output: int a[5]; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)