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;
}





February 02, 2007 07:35:09 #3
 marees   Member Since: Visitor    Total Comments: N/A 

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

 

Back To Question