When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
9 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
there's so much wrong with this code, e.g. that int arr[size] would require size to be already known at that line (even though using arrays with a dynamic size is discouraged)
arr[size] is an attempt to access array beyond its end
what that loop there is even supposed to do, no idea
certainly it is missing any code for reading the numbers
your description != function name != function logic
We generally recommend a good book to learn the necessary fundamentals:
To actually write and run C code, you will need a compiler, editor, and debugger. We strongly recommend to start out using an IDE, which will provide all these tools for you:
I guess you can start with learn-c.org right away
Indeed!I'm beginner on data structure. I dont know how to call a iterable array in main. What do you recommend me?