You are on page 1of 9

Getting Started

z
with C
z
What is C?

▪ C is a programming language developed at AT & T’s labaratories


of USA in 1972.

▪ It was designed and written by a man named Dennis Ritche.

▪ C became popular because it is reliable, simple and easy to use.

▪ It was mainly developed as a system programming language to


write an operating system.
z

Steps in learning

▪ English Language ▪ C language

1. ALPHABETS 1. ALPHABETS, DIGITS,


SYMBOLS
2. WORDS
2. CONSTANTS, VARIABLES,
3. SENTENCES
KEYWORDS
4. PARAGRAPH
3. INSTRUCTIONS

4. PROGRAM
z
z

▪ Constant is an entity that does not change through out the


program.

▪ Variable is an entity that may change.

▪ Keyword is a word that carries special meaning in C.


z

VARIABLES
▪ A variable is nothing but a name given to a storage area that our programs can manipulate.

▪ A particular type of constant can hold only the same type of constant.

RULES FOR CONSTRUCTING VARIABLE NAMES:

1. First character in a variable name must be an alphabet or an underscore( _ ).

2. Variable name can have alphabet, digits and underscore.

3. No commas, space allowed in variable name.

4. No other special symbols other than underscore is allowed.

5. C variables are case sensitive. Ex: name and Name are two different variables.

6. You can not use keywords / reserve words as variable name in C.


z
KEYWORDS
▪ Keywords are the words that already have some predefined
meaning in C library.

▪ These are also called as Reserved words.

▪ There are 32 Keywords in C language.

▪ These words cannot be used as variable names.


z
The First C Program

/*first c program( /* ..*/is used for multi line

commenting) */

#include<stdio.h>

int main()

printf(“welcome to Training”);

return 0;

Output:

Welcome to Training
z

THANK YOU

You might also like