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 constants are the values which never changes. The C uses following types of constants. Integer constants : Integer constants represent the whole numbers. They uses digits 0 to 9 and optional sign + or - before the number. The following are examples of valid integer constants. 123 -23 65535 0 +85 The space, comma and other special symbols are not allowed. The following are examples of invalid integer constants. 10,000 $500 15 780 Real Constant : Real Constants represent the numbers with fractional parts i.e digits after decimal point. They are used to represent contiguous quantities like temperature of day. The following are examples of valid real constants. 0.0005...
Comments
Post a Comment