GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Hexaware

 Print  |  
Question:  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;
}





October 10, 2006 02:06:50 #2
 Prashant   Member Since: Visitor    Total Comments: N/A 

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

7

9

11

13

15

     

 

Back To Question