You are here:

C/largest no from matrix

Advertisement


Question
how can i pick up largest no from 5 rows by 5 column matrix???

Answer
Keep a temporary variable and assign the value of array[1,1] to it.
Now, visit all the values in the array.
If any of the values is greater than the temp variable, then give that value to temp.
Else ignore and continue.
At the end of the process, the value stored in temp is the largest value.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.