Question
What is the output of the following C code? struct Point { int x, y; }; struct Point p1 = {3,4}; struct Point *ptr = &p1; ptr->x += ptr->y; ptr->y = ptr->x - ptr->y; printf("%d %d", p1.x, p1.y);
More C Programming Questions
- In Python, which of the following is used to create an anonymous function?
- Which type of Memory is typically the fastest in a computer system?
- In C, what will be the output of the following code? int a = 5; printf("%d", a++);
- What is the output of the following C code? int x=5, y=0; if (x>0 || y++) { } printf("%d", y);
- What is the output of the following C code? int x=0, y=10; if (x || y--) { } printf("%d", y);
- What is the output of the following C code? int arr[3][3] = {{1,2,3},{4,5,6},{7,8,9}}; printf("%d", *(*(arr+2)+1));
- Which tree traversal strategy visits all nodes level by level?
- Which storage class specifier in C allows a local variable to retain its value between successive function calls, while keeping its scope limited to the fu...
- Which of the following systems is typically designed to support managerial decision-making?
- Which of the following is a core feature of Cloud Computing that distinguishes it from traditional computing models?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)