5.7k views
7 votes
Can you answer this question?

Can you answer this question?-example-1
User Edgar H
by
3.4k points

1 Answer

13 votes

Answer:

  • The SIZE constant is not defined
  • The variable i should be defined at the start of the function, not within the condition of the while loop
  • The main function returns no value. Generally they should return a zero on success.
  • The printf text "%d" should actually be "%f". %d treats the variable as though it's an integer.

User Na
by
3.4k points