The keywords are special words used in C programming having specific meaning. The meaning of these words can not be changed. They are also knows as reserve words. Reserve words can not be used as identifiers. Keywords in C Programming auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while Description of all Keywords in C auto The auto keyword declares automatic variables. For example: auto int var1; This statement suggests that var1 is a variable of storage class auto and type int. Variables declared within function bodies are automatic by default. They are recreated each time a function is executed. Since, automatic variables are local to a function, they are also called local variables. To learn more visit C storage class . break and continue The break statement makes program jump out of the...
The variables represent the quantities which changes with the time. Each variable identified by a unique identifier in a program called variable name. The variables are used to store values which changes continuously. The length , breadth , area etc. are examples of variables which we have used earlier programs. The ANSI rules for variables names are as follows. 1. Only uppercase and lowercase letters, digits and underscore can be used. 2. Variable name always begins with letter. 3. Only first 32 characters are significant. 4. Keywords can not be ...
The identifiers are user defined names used in programs for providing names to variables, arrays and functions. The identifiers are made up of letters(uppercase and lowercase), digits and underscore(_). For Example, int max ; //max is an identifier which have datatype integer int max2; //this is second identifier of same datatype string max_3; //you can also use identifier like this with different datatype and underscore float 4max ; //you can not declare identifier like this this will generate an error The C is case sensitive and hence the uppercase and lowercase letters are not treated as same. For Example, int max=20 ;// this is a different variable which assigns a value 20 to max int Max=10 ; //this is different variable which assigns a value 10 to Max Identifiers also used to identify functions. For Example, int Add() ; //this is a Function which is created for addition of two integer; Program Aim : - This Program will help you ...
Comments
Post a Comment