Answer to Question #17740 in C++ for Akhil Menon

Question #17740
WAP having function named lower half which takes a 2-D array ‘A’ with size n rows and n columns as argument and print the lower half of the array.
1
Expert's answer
2012-11-01T12:20:49-0400

void lower(int** mass, int rows, int colms)
{
for(int i=(rows>>1);i<rows;++i)
for(int j=0;j<colms;++j)
cout<<mass[i][j];
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS