What will be the output of the following C++ program? #include<iostream.h>…
PYQ DSSSB 2018
What will be the output of the following C++ program?
#include<iostream.h>
#include<conio.h>
void main( )
{
int num[ ]={56,75,22,18,90};
int *ptr,i;
ptr=num;
ptr++;
ptr-=1;
cout<<"\nvalue at ptr:"<<*ptr;
}- A.
55
- B.
56
- C.
74
- D.
75
Attempted by 476 students.
Sign up free to check your answer
Sign up freeLoading lesson…

