#What's the most correct or idiomatic way to handle this data within the main function before passin

9 messages · Page 1 of 1 (latest)

river ravenBOT
#

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.

tawdry mason
#

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

river ravenBOT
#
How to Learn C Programming

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:

<:microsoft:1165512917047853127> Windows
  • [Visual Studio](#1165492293810257920 message)
  • CLion
<:tux:1165505626894520361> Linux
<:apple:1165508607798943754> Mac
tawdry mason
twilit turtle