Question
What will the following C code print? int a[5] = {10,20,30,40,50}; int *p = a; p += 2; printf("%d %d", *p, *(p-1)+*(p+1));
More C Programming Questions
- In Python, what does len() function do?
- 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...
- Which of the following is true about Java interfaces?
- What is printed if we execute the following C code? int a=5; int *p=&a; (*p)++; printf("%d",a);
- What is the output of the following Java code? try { int[] arr = new int[3]; System.out.println(arr[5]); } catch (NullPointerException e) { ...
- Which of the following is used to handle exceptions in Java?
- In Java, which method is called when an object is garbage collected?
- In Java, which method is used to start a thread?
- Which of the following is a core feature of Cloud Computing that distinguishes it from traditional computing models?
- Which tree traversal strategy visits all nodes level by level?
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)