TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

C Tutorials

C Reserved Words

Overview

In this tutorial, we will learn about C Reserved words or keywords.
C keywords are predefined words that are already defined and have special meanings.

C Reserved Words

C Keywords are words that are part of the C Language. These words have predefined meanings and these words cannot be used as variable names in the C Program.

 

C Keywords
char signed break for
auto const sizeof case
if extern double struct
continue goto register enum
typedef default return static
float union do switch
volatile int unsigned else
while long void short

The IDE software like Code::Blocks IDE highlights the C keywords with a different color. This is to increase the readability of the source code.

Example

In this example, the programmer is trying to declare and create a variable with the variable name case. However, the case is a C keyword. We cannot have the keyword as the variable name. The compiler throws an error expected identifier. The C compiler expects a valid identifier name.

 

C Reserved Words

Notice that the C keywords int, case, and return words are highlighted with dark blue color in the example.

—

C Tutorials

C Tutorials on this website can be found at:

https://www.testingdocs.com/c-language-tutorial/

Related Posts

C Language Characteristics

C Tutorials /

C Language Characteristics

C Source Code .c File

C Tutorials /

C Program Files & Formats

GNU Compiler Collection GCC

C Tutorials /

C Compilers

C Pointers

C Tutorials /

C Pointers

C Tutorials /

C Two-Dimensional Arrays

‹ Free IDEs for C Development› C Variables

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version