46
GB
'What is the output: int a[]={5,4,3,2,1}; int *p=a,*q=a+4; while(p
IN
'आउटपुट क्या है: int a[]={5,4,3,2,1}; int *p=a,*q=a+4; जबकि(पी
A
4}; cout<<p->x+p->y; delete p;', 'struct pointer: p->x+p->y?', '7', '7', '12', '12', 'Compile error', 'Compile error', 'Undefined', 'Undefined', NULL, 'option_a', '3+4=7. Output: 7.', 0, '2026-05-25', '2026-05-25'),
(1, 6, 77, 7, 4, 'What is the output: int a[]={10
4}; कॉउटी; हटाएँ p;', 'संरचना सूचक: p->x+p->y?', '7', '7', '12', '12', 'संकलन त्रुटि', 'संकलन त्रुटि', 'अपरिभाषित', 'अपरिभाषित', NULL, 'option_a', '3+4=7। आउटपुट: 7.', 0, '2026-05-25', '2026-05-25'),
(1, 6, 77, 7, 4, 'आउटपुट क्या है: int a[]={10
B
30}; int *const p=a; p[1]=200; cout<<a[1];', 'const pointer (not const int): modify via []?', '200', '200', '20', '20', 'Compile error', 'Compile error', 'Undefined', 'Undefined', NULL, 'option_a', 'p is const pointer; *data* can be modified. p[1]=200 sets a[1]=200. Output: 200.', 0, '2026-05-25', '2026-05-25'),
(1, 6, 77, 7, 4, 'What is the output: int x=5; unique_ptr<int> p=make_unique<int>(x); unique_ptr<int> q=move(p); cout<<(bool)p<<*q;', 'Move unique_ptr: p null
30}; int *const p=a; पी[1]=200; अदालत
C
*q=5. Output: 05.', 0, '2026-05-25', '2026-05-25'),
(1, 6, 77, 7, 4, 'What is the output: int a[]={1
*क्यू=5. आउटपुट: 05.', 0, '2026-05-25', '2026-05-25'),
(1, 6, 77, 7, 4, 'आउटपुट क्या है: int a[]={1
D
3
3
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
&y}; *p[0]+=*p[1]; cout<>(3,0); (*sp)[1]=5; cout<<(*sp)[1];', 'shared_ptr to vector?', '5', '5', '0', '0', 'Compile error', 'Compile error', 'Undefined', 'Undefined', NULL, 'option_a', '(*sp)[1]=5. Output: 5.', 0, '2026-05-25', '2026-05-25'),
(1, 6, 77, 7, 4, 'What is the output: int a[]={3
व्याख्या (हिन्दी)
&y}; *पी[0]+=*पी[1]; अदालत