451
GB
What is the output: struct Pt{int x,y; Pt(int x,int y):x(x),y(y){} double dist(){return sqrt(x*x+y*y);}}; Pt p(4); cout<
IN
आउटपुट क्या है: struct Pt{int x,y; Pt(int x,int y):x(x),y(y){} डबल डिस्ट(){रिटर्न sqrt(x*x+y*y);}}; पीटी पी(4); अदालत
A
5
5
B
7
7
C
25
25
D
Error
गलती
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
sqrt(9+16)=sqrt(25)=5.
व्याख्या (हिन्दी)
sqrt(9+16)=sqrt(25)=5.