GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Hexaware
Go To First  |  Previous Question  |  Next Question 
 Hexaware  |  Question 8 of 10    Print  
Give the output of the following program:
main()
{
int a[]={ 2,4,6,8,10 };
int i;
change(a,5);
for( i = 0; i <= 4; i++)
printf("n %d",a[i]);
}
change( int *b, int n){
int i;
for( i = 0; i < n; i++)
*(b+i) = *(b+i) + 5;
}


  
Total Answers and Comments: 6 Last Update: November 03, 2007     Asked by: maneesh mishra 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 10, 2006 14:03:05   #1  
Bhavani        

output of the following program: ma...

7

9

11

13

15


 
Is this answer useful? Yes | No
October 15, 2006 02:06:50   #2  
Prashant        

RE: Give the output of the following program: ma...

7

9

11

13

15


 
Is this answer useful? Yes | No
February 19, 2007 07:35:09   #3  
marees        

RE: Give the output of the following program: ma...
7
9
12
14
16

 
Is this answer useful? Yes | No
March 15, 2007 06:08:14   #4  
Abhishek Kumar mishra        

RE: Give the output of the following program: ma...
ans is

7 9 11 13 15

 
Is this answer useful? Yes | No
October 07, 2007 08:13:12   #5  
aravind        

RE: Give the output of the following program: ma...

7 9 11 13 15



 
Is this answer useful? Yes | No
November 03, 2007 05:19:41   #6  
raja sekhar reddy.c        

RE: Give the output of the following program
ans is: 9 13 17 21 25
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape