Home » Categories » Logical » Predict the output of the program
Predict the output of the program
0
Predict the output of the program

main()

{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q; }
for(j=0;j<5;j++){
printf(" %d ",*p);
++p; }
}


a.2 2 2 2 2 2 3 4 6
b.3 4 6 2 2 2 2 2 2
c.6 2 2 2 2 2 2 3 4
d.2 2 2 2 2 3 4 6
 
Asked By : Bharath Kumar Categories : LogicalAptitudeCWipro
  Answer:   a. 2 2 2 2 2 2 3 4 6
Post Your Answer
Previous Question
Next Question
Tweet
Related Questions