Ques 1 Pointer
Which of the following is the correct way for accessing the first elements of the array if "p" is the array pointer variable?
Ques 2 Pointer
What will be the output of the following C++ Code?
#include<iostream> using namespace std; int main() { int arr[]={50,60,75,80,90,126}; int *p=(arr+3); cout<<*p+*(p+1); }
Ques 3 Pointer
What will be the output of the following C++ Code?
#include<iostream> using namespace std; int main() { int a=89,b=56,c=45; int *arr[]={&a,&b,&c}; cout<<(arr+2); }