Question
What will the following C code print? int a[5] = {1,3,5,7,9}; int *p = a+2; printf("%d", *p + *(p-1));
More C Programming Questions
- Which of the following is a valid operation on a linked list data structure?
- In C, which function is used to dynamically allocate memory?
- 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 = p...
- On a typical 64-bit system (int = 4 bytes, double = 8 bytes), what is printed by the following C code? union u { int i; char c[6]; double d; }; printf("%...
- Which of the following systems is typically designed to support managerial decision-making?
- What is the output of the following C++ program?
- Why should a C++ base class destructor be virtual when deleting derived objects through base pointers?
- In Object-Oriented Programming, which mechanism allows a subclass to provide its own specific implementation of a method that is already defined in its sup...
- Which of the following is used to declare a list in Python?
- In Java, which data type is used to store true or false values?
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)