techyworld
0
Junior Poster in Training
Recommended Answers
Jump to PostPlease give some effort when you post a question. This is a simple task you could learn by reading a book on C. You need to read in characters from the user and then store those values in the array. Look into fgets() and getchar().
Jump to PostYou never initialize the variable "largest". On line 23, you assign A[0] to an uninitialized value. When you go through A to find the largest value, A[0] could be anything. When I tested it, it was 32767.
I recommend compiling with the compiler option -Wall. That enables all warnings. …
All 7 Replies
Mouche
techyworld
0
Junior Poster in Training
Mouche
techyworld
0
Junior Poster in Training
andrewll2
8
Light Poster
emrecaglarhosgo
0
Newbie Poster
Mouche
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.