Find the errors in the following program:

  1. # include<stdio.h>

  2. int main()

  3. {

  4. printf("Learning C is not

  5. a difficult task");

  6. return();

  7. }

Questions by Swati Goel

Showing Answers 1 - 1 of 1 Answers

prakash pankaj

  • Dec 1st, 2012

Return should contain return(0) because return type of main is int.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions