in Programming
479 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

in Programming
479 views

4 Comments

yup
0
0

In C programming ,  function parameters are evaluated from right to left but printed from left to right

who said? 

0
0
Hmm my fault

function parameters depends on compiler
0
0

Please log in or register to answer this question.