beginnersbook.com

  • Home
  • All Tutorials
    • Learn Servlet
    • Learn JSP
    • Learn JSTL
    • Learn C
    • Learn C++
    • Learn MongoDB
    • Learn XML
    • Learn Python
    • Learn Perl
    • Learn Kotlin
    • Learn jQuery
  • Core Java
  • OOPs
  • Collections
  • Java I/O
  • JSON
  • DBMS

C Keywords – Reserved Words

By Chaitanya Singh | Filed Under: c-programming

In C, we have 32 keywords, which have their predefined meaning and cannot be used as a variable name. These words are also known as “reserved words”. It is good practice to avoid using these keywords as variable name. These are –

C-keywords

Basics usage of these keywords –

if, else, switch, case, default – Used for decision control programming structure.

break – Used with any loop OR switch case.

int, float, char, double, long – These are the data types and used during variable declaration.

for, while, do – types of loop structures in C.

void – One of the return type.

goto – Used for redirecting the flow of execution.

auto, signed, const, extern, register, unsigned – defines a variable.

return – This keyword is used for returning a value.

continue – It is generally used with for, while and dowhile loops, when compiler encounters this statement it performs the next iteration of the loop, skipping rest of the statements of current iteration.

enum – Set of constants.

sizeof – It is used to know the size.

struct, typedef  – Both of these keywords used in structures (Grouping of data types in a single record).

union – It is a collection of variables, which shares the same memory location and memory storage.

volatile 

❮ PreviousNext ❯

Comments

  1. ADNANKHAN says

    September 22, 2015 at 8:53 AM

    Just tell me is this for turbo c or c++?

    Reply
    • Keerthi Vasan says

      July 2, 2016 at 2:42 AM

      This is C

      Reply
  2. ADNANKHAN says

    September 22, 2015 at 4:17 PM

    Is this for Turbo V or C++?

    Reply
    • qwerty says

      November 16, 2016 at 3:15 PM

      This is a C language standard.
      It should be the same for all compilers.

      Reply
  3. Don Don Ella says

    December 18, 2015 at 11:28 AM

    I like what they talking about, i understand it clearly and i hope this website will help me understand more about programing.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

C Programming Tutorial

  • Turbo C++ installation
  • First C Program
  • C - Keywords
  • Operator precedence
  • C - if statement
  • C - if..else
  • C - for loop
  • C - while loop
  • C - do while loop
  • C - continue
  • C - break statement
  • C - switch..case
  • C - goto statement
  • C - Arrays
  • 2 D array
  • C - String
  • C - functions
  • Function call by reference
  • Function call by value
  • Array to function
  • C - Structures
  • C - Pointers
  • Pointer to Pointer
  • Pointers to functions
  • C - function pointers
  • Pointer & Array
  • C - File I/O
  • C Programming Examples

Recently Added..

  • JSON Tutorial
  • Java Regular Expressions Tutorial
  • Java Enum Tutorial
  • Java Annotations Tutorial

Copyright © 2012 – 2022 BeginnersBook . Privacy Policy . Sitemap