Find the output for the following C programint bags[5]={20,5,20,3,20};void main(void){int pos=5,*next();*next()=pos;printf("%d %d %d",pos,*next(),bags[0]);}int *next(){int i;for(i=0;i<5;i++)if (bags[i]==20)return(bags+i);printf("Error!");exit(0);}

Showing Answers 1 - 3 of 3 Answers

kamatchi

  • Nov 15th, 2006
 

this the answer for the above que.

5 20 5

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions