Home » C programs

Common C program Errors

This section contains Common C program errors and their solutions. Here, we will learn by examples how and when an error occurs and how to fix it?

  1. Error: undefined reference to 'main' in C
  2. Error: Expected ';' before 'return' in C
  3. Error: expected ')' before ';' token in C
  4. Error: missing terminating double quote character in C
  5. Error: 'Hello'/Text undeclared while printing Hello world using printf()
  6. Error: expected declaration specifies before printf in C
  7. Error: expected declaration or statement at end of input in C
  8. Fatal Error: stio.h: No such file or directory in C
  9. Error: Invalid escape sequence in C
  10. Error: Unterminated comment (Invalid comment block) in C
  11. Error: Assign string to the char variable in C
  12. Error: Assignment of read-only variable in C
  13. Error: 'else' without a previous 'if' in C
  14. Error: case label does not reduce to an integer constant in C
  15. Error: duplicate case value in C
  16. Error: Executing more than one case block in C
  17. Error: switch quantity not an integer in C
  18. Error: case label not within a switch statement in C
  19. Error: Expected '}' before 'else' in C
  20. Error: expected '=', ',', ',' 'asm' or ' _attribute_' before '<' token in C
  21. Error: Id returned 1 exit status (undefined reference to 'main')
  22. Error: Assignment of read-only location in C





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.