Question
What is the output of the following C++ code? #include using namespace std; int main() { int x = 5; int &ref = x; ref = 10; int *ptr = &x; *ptr += 5; cout << x << " " << ref; return 0; }
More C Programming Questions
- What will the following C code print? int a[4] = {2,4,6,8}; int *p = a+1; printf("%d", *p + *(p+2));
- 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...
- In C++, which access specifier allows members to be accessible only within the class?
- 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...
- What will be the output of the following C code: int a = 10, b = 3; printf("%d", a / b);
- 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));
- What is the output of the following C code? char *arr[] = {"Bank", "IBPS", "SO"}; char **p = arr; p++; printf("%s", *p);
- Which of the following is a core feature of Cloud Computing that distinguishes it from traditional computing models?
- In mobile computing, which type of network allows devices to connect directly to each other without using a central router or switch?
- Consider a table Orders with columns OrderID, CustomerID, OrderDate, and TotalAmount. Which SQL query would correctly find the total number of orders and t...
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)