how to find maximum in only coloums in 2d array.?????
Of course, if it's an array you already know the maximum...>.>;; Perhaps he meant vectors?
The only way for him to know ahead of time is if it is a constant static (stack) array that is initialized.
Arrays can be modified during run time just like the STL containers.