Question
What will be the output of the following C code snippet? int a = 10; int *p = &a; *p = 20; printf("%d",
What will be the output of the following C code snippet? int a = 10; int *p = &a; *p = 20; printf("%d",
a);
More C Programming Questions
- What is the output of the following C code? int a = 12, b = 10; printf("%d", a & b | a ^ b);
- What is the output of the following C code? int arr[5] = {10, 20, 30, 40, 50}; int *p = arr; printf("%d", *(p+2) + *(arr+3) - *(p+1));
- In C++, which access specifier allows members to be accessible only within the class?
- What is the output of the following C code? int x = 5, y = 2; printf("%d", x++ / y + x % y);
- In C, int x=10; printf("%d %d",x++,++x); What is the most accurate statement?
- What is the output of the following C code? int a[] = {1, 2, 3, 4, 5}; int *p = &a[4]; int *q = &a[1]; printf("%d %d", (int)(p - q), *(q + 2));
- In C, declaring a global variable using the 'static' keyword, as in 'static int counter,' at file scope, ensures that:
- What is the value of 'result' printed by the following C code? int result = 20 - 4 / 2 + 3 * 2; printf("%d", result);
- Which Python statement is used to create an empty set?
- In C, when an array is passed as a parameter to a function, what does sizeof(arr) typically return when evaluated inside that function?
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)