753 views
0 votes
0 votes

 Give the output of the following program

#include <iostream.h>

void main()

{

int x[]={5,2,6,9,8};

int *p,**q,*t;

p=x;

t=x+1;

q=&t;

cout<<endl<<*++p<<" "<<**q<<" "<<*t++;

}

(a) 1 1 1 1 (b) 5 2 6 (c) 2 6 2 (d) 2 6 9

Please log in or register to answer this question.

Related questions