946 Question 946 EN + हिं GB The output of: int** p; int a[2][2]={{1,2},{3,4}}; p=new int*[2]; for(int i=0;i<2;i++) p[i]=a[i]; cout< IN का आउटपुट: int** p; int a[2][2]={{1,2},{3,4}}; पी=नया पूर्णांक*[2]; for(int i=0;i A 2 2 B 3 3 C 4 4 D 1 1 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) p[1][0] = a[1][0] = 3. व्याख्या (हिन्दी) पी[1][0] = ए[1][0] = 3. 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions memcpy vs memmove difference: The output of: char a[]="Hello"; char b[]="Hello"; cout What is the output: jmp_buf jb; if(!setjmp(jb)){cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
947 Question 947 EN + हिं GB The output of: char* s="Hello"; cout< IN का आउटपुट: char* s='हैलो'; अदालत A 5 5 B 6 6 C 4 4 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) strlen counts chars before null: H-e-l-l-o = 5. व्याख्या (हिन्दी) स्ट्रेलेन शून्य से पहले वर्णों की गिनती करता है: एच-ई-एल-एल-ओ = 5। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: char a[]="Hello"; char b[]="Hello"; cout What is the output: scanf("%d",&n) with input 42; print... The output of: int a=1,b=2; memcpy(&a,&b,sizeof(int));... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
948 Question 948 EN + हिं GB The output of: char a[]="Hello"; char b[]="World"; strcat(a,b); cout< IN का आउटपुट: char a[]='हैलो'; चार बी[]='विश्व'; स्ट्रैटकैट(ए,बी); अदालत A Hello नमस्ते B World दुनिया C HelloWorld हैलो वर्ल्ड D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) strcat appends b to a. व्याख्या (हिन्दी) strcat b को a से जोड़ता है। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int** p; int a[2][2]={{1,2},{3,4}}; p=ne... The output of: int arr[5]={1,2,3,4,5}; memset(arr,0,siz... The output of: FILE* f=tmpfile(); fprintf(f,"test"); re... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
949 Question 949 EN + हिं GB The output of: char a[]="Hello"; char b[]="Hello"; cout< IN का आउटपुट: char a[]='हैलो'; चार बी[]='हैलो'; अदालत A 1 1 C -1 -1 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Identical strings; strcmp returns 0. व्याख्या (हिन्दी) समान तार; strcmp 0 लौटाता है। 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: char s[]="Hello World"; char* p=strtok(s... longjmp in C++ is: The output of: int a=1,b=2; memcpy(&a,&b,sizeof(int));... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
950 Question 950 EN + हिं GB The output of: char a[]="Apple"; char b[]="Banana"; cout<<(strcmp(a,b)<0?"a=b"); IN का आउटपुट: char a[]='Apple'; चार बी[]='केला'; अदालत A a>=b ए>=बी B a<b ए C Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) A < B alphabetically; strcmp<0. व्याख्या (हिन्दी) ए <बी वर्णानुक्रम में; strcmp 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions longjmp in C++ is: The output of: int a=1,b=2; memcpy(&a,&b,sizeof(int));... What is the output: jmp_buf jb; if(!setjmp(jb)){cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
951 Question 951 EN + हिं GB The output of: char s[]="Hello World"; char* p=strtok(s," "); cout< IN का आउटपुट: char s[]='हैलो वर्ल्ड'; char* p=strtok(s," "); अदालत A Hello World हैलो वर्ल्ड B Hello नमस्ते C World दुनिया D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) strtok splits on space; first token = "Hello". व्याख्या (हिन्दी) स्ट्रोक अंतरिक्ष पर विभाजित होता है; पहला टोकन = "हैलो"। 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int** p; int a[2][2]={{1,2},{3,4}}; p=ne... The output of: int arr[5]={1,2,3,4,5}; memset(arr,0,siz... What does perror("msg") do in C++? 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
952 Question 952 EN + हिं Medium GB memcpy vs memmove difference: IN मेमसीपीवाई बनाम मेममूव अंतर: A Same function वही कार्य B memmove handles overlapping source/dest; memcpy does not मेमूव ओवरलैपिंग स्रोत/गंतव्य को संभालता है; memcpy नहीं करता है C memcpy is safer memcpy अधिक सुरक्षित है D memmove is undefined मेममूव अपरिभाषित है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) memmove is safe for overlapping regions. व्याख्या (हिन्दी) ओवरलैपिंग क्षेत्रों के लिए मेमोव सुरक्षित है। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What does perror("msg") do in C++? What is the output: jmp_buf jb; if(!setjmp(jb)){cout The output of: char a[]="Apple"; char b[]="Banana"; cou... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
953 Question 953 EN + हिं GB The output of: int arr[5]={1,2,3,4,5}; memset(arr,0,sizeof(arr)); cout< IN इसका आउटपुट: int arr[5]={1,2,3,4,5}; मेमसेट(arr,0,sizeof(arr)); अदालत A 3 3 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) memset fills all bytes with 0. व्याख्या (हिन्दी) मेमसेट सभी बाइट्स को 0 से भरता है। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: FILE* f=tmpfile(); fprintf(f,"test"); re... What is the output: printf("%d %d %d",1,2,3); The output of: char a[]="Hello"; char b[]="Hello"; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
954 Question 954 EN + हिं GB The output of: int a=1,b=2; memcpy(&a,&b,sizeof(int)); cout< IN का आउटपुट: int a=1,b=2; memcpy(&a,&b,sizeof(int)); अदालत A 1 1 B 2 2 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) memcpy copies b into a; a becomes 2. व्याख्या (हिन्दी) memcpy b को a में कॉपी करता है; ए 2 हो जाता है. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: char s[]="Hello World"; char* p=strtok(s... The output of: int arr[5]={1,2,3,4,5}; memset(arr,0,siz... The output of: char* s="Hello"; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
955 Question 955 EN + हिं GB What is the output: printf("%d %d %d",1,2,3); IN आउटपुट क्या है: printf("%d %d %d",1,2,3); A 1 2 3 1 2 3 B 123 123 C 1,2,3 1,2,3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) printf with %d for each int. व्याख्या (हिन्दी) प्रत्येक इंट के लिए %d के साथ प्रिंटफ। 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: char a[]="Hello"; char b[]="Hello"; cout The output of: FILE* f=tmpfile(); fprintf(f,"test"); re... The output of: int a=1,b=2; memcpy(&a,&b,sizeof(int));... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
956 Question 956 EN + हिं GB What is the output: scanf("%d",&n) with input 42; printf("%d",n); IN आउटपुट क्या है: scanf("%d",&n) इनपुट 42 के साथ; प्रिंटफ ("%d",n); A 42 42 B Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) scanf reads 42; printf outputs 42. व्याख्या (हिन्दी) स्कैनफ़ 42 पढ़ता है; प्रिंटफ आउटपुट 42. 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: FILE* f=tmpfile(); fprintf(f,"test"); re... The output of: char s[]="Hello World"; char* p=strtok(s... What is the output: printf("%d %d %d",1,2,3); 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
957 Question 957 EN + हिं Easy GB What does perror("msg") do in C++? IN पेरर ("msg") C++ में क्या करता है? A Print msg only केवल संदेश प्रिंट करें B Print msg + colon + system error message for errno त्रुटि के लिए संदेश + कोलन + सिस्टम त्रुटि संदेश प्रिंट करें C Set errno ग़लती से सेट करें D Clear error त्रुटि साफ़ करें ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) perror outputs description of last system error. व्याख्या (हिन्दी) पेरर अंतिम सिस्टम त्रुटि का विवरण आउटपुट करता है। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Easy"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: char s[]="Hello World"; char* p=strtok(s... The output of: FILE* f=tmpfile(); fprintf(f,"test"); re... The output of: char a[]="Hello"; char b[]="World"; strc... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
958 Question 958 EN + हिं GB The output of: FILE* f=tmpfile(); fprintf(f,"test"); rewind(f); char buf[10]; fscanf(f,"%s",buf); cout< IN इसका आउटपुट: FILE* f=tmpfile(); fprintf(f,"परीक्षण"); रिवाइंड(एफ); चार बफ़[10]; fscanf(f,"%s",buf); अदालत A test परीक्षा B Error गलती C empty खाली D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Write test to temp file, rewind, read back test. व्याख्या (हिन्दी) अस्थायी फ़ाइल में परीक्षण लिखें, रिवाइंड करें, वापस परीक्षण पढ़ें। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: jmp_buf jb; if(!setjmp(jb)){cout The output of: char* s="Hello"; cout What is the output: printf("%d %d %d",1,2,3); 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
959 Question 959 EN + हिं GB What is the output: jmp_buf jb; if(!setjmp(jb)){cout<<"A"; longjmp(jb,1);} cout<<"B"; IN आउटपुट क्या है: jmp_buf jb; if(!setjmp(jb)){cout A AB अब B A ए C B बी D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) setjmp saves point; prints A; longjmp jumps back; now setjmp returns 1 (truthy); else: print B. व्याख्या (हिन्दी) setjmp बिंदु बचाता है; ए प्रिंट करता है; लॉन्गजम्प वापस कूदता है; अब setjmp रिटर्न 1 (सत्य); अन्य: बी प्रिंट करें। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: int a=1,b=2; memcpy(&a,&b,sizeof(int));... What does perror("msg") do in C++? What is the output: printf("%d %d %d",1,2,3); 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
960 Question 960 EN + हिं Medium GB longjmp in C++ is: IN C++ में longjmp है: A Safer than exception अपवाद से अधिक सुरक्षित B Dangerous - does not call destructors (use C++ exceptions instead) खतरनाक - विध्वंसकों को कॉल नहीं करता (इसके बजाय C++ अपवादों का उपयोग करें) C Same as throw फेंकने के समान D Same as return वापसी के समान ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) longjmp skips destructors; use throw/catch in C++. व्याख्या (हिन्दी) longjmp विध्वंसकों को छोड़ देता है; C++ में थ्रो/कैच का उपयोग करें। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions memcpy vs memmove difference: The output of: FILE* f=tmpfile(); fprintf(f,"test"); re... What does perror("msg") do in C++? 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)