![]() |
.. (לתיקייה המכילה) | |
Can I change the supplied functions? | |
Yes. But the responsibility to produce the expected output is still on you. |
What should I do, if I get unused parameter error in the supplied functions? | |
You can produce dummy code that uses the parameter, see https://stackoverflow.com/questions/3599160/how-to-suppress-unused-parameter-warnings-in-c or you can change the function header! and drop the unused parameter. |
Can we use dynamic allocations in questions 1 and 2? | |
Yes. |
How can we read an unknowm number of lines? | |
scanf will eventually return EOF !! |
Can I use gets and fgets? | |
No. |
In Q1, what output should be produced, in case two or more companies have the very same average? | |
You need to output the index of the company that first appeared in input. |