Find the errors in the following program:

Code
  1. # include<stdio.h>

  2. int main()

  3. {

  4. printf("Learning C is not

  5. a difficult task");

  6. return();

  7. }
Copyright GeekInterview.com

Questions by Swati Goel

Showing Answers 1 - 3 of 3 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