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? char *arr[] = {"Bank", "IBPS", "SO"}; char **p = arr; p++; printf("%s", *p);
- Which C operator is used to access a value at a memory address stored in a pointer?
- In Python, which of the following is used to create an anonymous function?
- What will the following C code print? int arr[3][3] = {{1,2,3},{4,5,6},{7,8,9}}; printf("%d", arr[1][2] + arr[2][0]);
- Why should a C++ base class destructor be virtual when deleting derived objects through base pointers?
- Consider the following C structure on a typical 32-bit system, where int is 4 bytes, char is 1 byte, and the compiler applies default structure padding for...
- 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...
- What is the value of 'result' printed by the following C code? int result = 20 - 4 / 2 + 3 * 2; printf("%d", result);
- In C++, a base class pointer holds the address of a derived class object. The base class declares a non-virtual member function that the derived class rede...
- Consider the recursive function: int fact(int n) { if (n == 0) return 1; return n * fact(n-1); } How many total function calls (including the ver...
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)