Piece of Information - C Data Types
Main | Registration | Login | RSSSaturday, 2016-12-10, 11:20 PM

PiEcE oF InFoRmAtIoNs

Site menu
Search
Statistics

Total online: 1
Guests: 1
Users: 0

C Data Types


Before a variable name (identifier) can be used in a C program, it must be declared explicitly, together with its corresponding data type. There are some restrictions in giving a name to variables and constants. Names can be composed of letters and numbers, however the first character must be a letter. Capital (uppercase) letters and small (lowercase) letters are treated differently, so capital A is not the same with small a.

Keywords or commands such as case, int, float, if, do, for, etc., cannot be used as variable or constant names, because they are considered as reserved words. C programming language is a case-sensitive. This means that all keywords, commands and standard functions of C language must be written in lower case letters.


Basic Data Types of C



Control Characters
\a -   alert (bell) character
\b -   backspace
\n -   new line/next line
\r -   carriage return/Enter key
\t -   horizontal tab
\v -   vertical tab
\\ -   backslash
\f -   \form feed
‘ ‘ -   single quote is used for single character / letter
" " -   double quote is used for two or more character
{ -   open curly brace signifies begin
} -   close curly brace signifies end
& -   address of operator
* -   indirection operator / pointer
Login form
Calendar
«  December 2016  »
SuMoTuWeThFrSa
    123
45678910
11121314151617
18192021222324
25262728293031
Site friends
CLICK BELOW THE SITE YOU WANT TO GO:

Create your own site

YAHOO Mail

FACEBOOK

GOOGLE

FRIENDSTER

Our poll
Rate my site
Total of answers: 25

Copyright MyCorp © 2016
Make a free website with uCoz