1396
GB
What is the output: class Matrix{int d[2][2]={{1,2},{3,4}}; public: int& at(int i,int j){return d[i][j];} int get(int i,int j)const{return d[i][j];}}; Matrix m; m.at(0,1)=10; cout<
IN
आउटपुट क्या है: क्लास मैट्रिक्स{int d[2][2]={{1,2},{3,4}}; सार्वजनिक: int& at(int i,int j){return d[i][j];} int get(int i,int j)const{return d[i][j];}}; मैट्रिक्स एम; m.at(0,1)=10; अदालत
A
10
10
B
2
2
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
at(0,1) returns ref to d[0][1]=2; set to 10. get(0,1)=10. Output: 10.
व्याख्या (हिन्दी)
at(0,1) रेफरी को d[0][1]=2 पर लौटाता है; 10 पर सेट करें। प्राप्त करें(0,1)=10। आउटपुट: 10.