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;
}
  1. A.

    55

  2. B.

    56

  3. C.

    74

  4. D.

    75

Attempted by 476 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…