Logo

Codcups

Complete C Programming Reference's

Intro Of C Language?

C is a general-purpose, high-level, procedural programming language developed by Dennis Ritchie in 1972 at Bell Laboratories. It is one of the oldest and most widely used programming languages, often referred to as the "mother of all modern languages.

C Language Full Reference Table

📌 1. C Keywords

KeywordDescription
autoDeclares automatic (local) variable
breakExits a loop or switch
caseDefines a block in switch-case
charDeclares a character data type
constDeclares constant value
continueSkips current iteration in loop
defaultDefines default case in switch
doStarts a do-while loop
doubleDeclares double-precision float
elseDefines alternate block in if-else
enumDeclares enumerated type
externDeclares external variable or function
floatDeclares floating-point variable
forStarts a for loop
gotoJumps to a label
ifConditional branching
intDeclares integer variable
longDeclares long integer
registerDeclares register variable
returnReturns from a function
shortDeclares short integer
signedSigned data type modifier
sizeofReturns size of data type
staticStatic storage class
structDeclares structure
switchSwitch-case control
typedefDefines new type name
unionDeclares union
unsignedUnsigned data type modifier
voidDeclares empty return type
volatileTells compiler not to optimize
whileStarts a while loop

📌 2. C Data Types

Data TypeDescription
intInteger
charCharacter
floatFloating point
doubleDouble-precision float
voidNo value
shortShort integer
longLong integer
signedSigned type
unsignedUnsigned type

📌 3. C Operators

Operator TypeSymbols / Examples
Arithmetic+ - * / %
Relational== != > < >= <=
Logical&& || !
Assignment= += -= *= /= %=
Bitwise& | ^ ~ << >>
Increment/Decrement++ --
Conditional?:
Comma,
Sizeofsizeof()
Pointer* (declaration), & (address)
Member Access. and ->

📌 4. Escape Sequences

Escape CodeMeaning
\nNewline
\tTab
\\Backslash (\)
\"Double quote (")
\'Single quote (')
\rCarriage return
\bBackspace
\fForm feed
\aAlert (beep)
\vVertical tab
\0Null character

📌 5. Special Symbols in C

SymbolPurpose
;Statement terminator
{ }Block start and end
( )Function and condition grouping
[ ]Array subscript
#Preprocessor directive
*Pointer, multiplication
&Address of operator
->Access struct member via pointer
.Access struct member

Click to go back on notes page.