Wednesday 13 February 2013

Constants & Variables in C Programming Language



String constant is a sequence of characters within single or double quotation marks.
Example:
'Welcome' "Welcome"

Variables in C Programming Language

Each programming language has its own rules for representing character variables. There are three types of variables. They are,

1) Static
2) Semistatic
3) Dynamic


Static Variables in C programming Language

A static data type is a data type whose length of variable is fixed before executing the program. We cannot change the length during run time.

Semistatic Variables in C Programming Language

A semistatic data type is a datatype whose length of the variable can be varied during run time. But the length should not exceed the already fixed value.

Dynamic Variables in C Programming language

A dynamic data type is a data type whose length of the variables can be changed during run time.



0 comments:

Post a Comment

Powered by Blogger.