916
GB
What is the output: class A{public:virtual void f()=0;}; A *p=new struct B:public A{void f(){cout<<'X';}}{};p->f();
IN
आउटपुट क्या है: क्लास ए{पब्लिक:वर्चुअल वॉयड f()=0;}; A *p=नई संरचना B:सार्वजनिक A{void f(){cout
A
X
एक्स
B
Compile error
संकलन त्रुटि
C
Undefined
अपरिभाषित
D
Nothing
कुछ नहीं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Inline struct definition inside new expression is not valid C++ syntax. Compile error.
व्याख्या (हिन्दी)
नई अभिव्यक्ति के अंदर इनलाइन संरचना परिभाषा मान्य C++ सिंटैक्स नहीं है। संकलन त्रुटि.