Professional Documents
Culture Documents
Data Types
. int
. structure . char . pointer
. union . float . array
. enum . double . function
. class . void
• Constants and Variable
int Age = 20
Types of C – Constants :
• Integer constants
• Character constants
• String constants
• https://fresh2refresh.com/c-programming/c-constants/
• 1.
a x b – c a * b – c
(m + n) (x + y) (m + n) * (x + y)
(ab / c) a * b / c
(x / y) + c x / y + c
Array
Function fundamentals
Basic of Input /Output Formatted / Unformatted
Formatted I/O:
Format specifiers in console formatted I/O functions
scan f
%d Scan or print an integer
printf as signed decimal
number
%f Scan or print a floating
point number
%c To scan or print a
character
%s To scan or print a
character string. The
scanning ends at
whitespace.
Unformatted I/O:
1.Signed
2.Unsigned
3.Short
4.Long
https://www.tutorialcup.com/cplusplus/modifier-types.htm
Storage class specifiers
Auto - Variable
Register
Extern - Function
Static - Declared outside
http://cs-fundamentals.com/c-programming/storage-classes-in-c-and-storage-class-
specifiers.php
Explicit type
1.int a=42;
2.float b=a;
1.float a=42.12;
2.int b=(int)a;