Monday, 12 December 2016

C Programming Keywords and Identifiers


In this tutorial, you will learn about keywords; reserved words in C programming that are part of the syntax. Also, you will learn about identifiers and proper way to name a variable.

C Language Syntax Rules

C language syntax specify rules for sequence of characters to be written in C language. The rule specify how character sequence will be grouped together to form tokens. A smallest individual unit in c program is known as C Tokens. Tokens are either keyword, identifier, constant, variable or any symbol which has some meaning in C language. A C program can also be called as collection of various tokens.

Saturday, 3 December 2016

C - Program Structure


Before we study the basic building blocks of the C programming language, let us look at a bare minimum C program structure so that we can take it as a reference in the upcoming chapters.

A C program basically consists of the following parts −
  • Preprocessor Commands
  • Functions
  • Variables
  • Statements & Expressions
  • Comments

C - Environment Setup



Local Environment Setup

If you want to set up your environment for C programming language, you need the following two software tools available on your computer:

(a) Text Editor
(b) The C Compiler