1651
GB
What is the output: int x=5,y=10; int *p=&x; swap(p,*(int**)&y);
IN
आउटपुट क्या है: int x=5,y=10; int *p=&x; स्वैप(p,*(int**)&y);
A
Undefined behavior
अपरिभाषित व्यवहार
B
5
5
C
Compile error
संकलन त्रुटि
D
10
10
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Casting int* to int** and swapping is UB.
व्याख्या (हिन्दी)
Int* को int** में कास्ट करना और स्वैप करना UB है।