Hi
I was just reading about array chapter. I want to use array in program. I tried to write c program to find largest number in array. I saw some programs on Internet but I didn't understand because I don't understand logic how to find largest number manually . first I want to understand basic and than I want to go for Program.
For example
Example: Users enter: 1 0 7 9 6
The largest number is : 9
By looking we can say that the number 9 is largest number but how does program do ?
I am trying to understand basic logic so that I can try to implement program .
int Array[5] = {1,0,7,9,6};
how to find out manually which number is largest in array ?
I was just reading about array chapter. I want to use array in program. I tried to write c program to find largest number in array. I saw some programs on Internet but I didn't understand because I don't understand logic how to find largest number manually . first I want to understand basic and than I want to go for Program.
For example
Example: Users enter: 1 0 7 9 6
The largest number is : 9
By looking we can say that the number 9 is largest number but how does program do ?
I am trying to understand basic logic so that I can try to implement program .
int Array[5] = {1,0,7,9,6};
how to find out manually which number is largest in array ?
Last edited: