Introduction to C programming Flashcards
What are the uses of C programming
Used to develop software like:
1. Operating systems
2. Databases
3. Compilers, and so on.
What are C keywords?
Keywords are predefined, reserved words used in programming that have special meaning to the compiler.
What are identifiers?
Identifiers refers to name given to entities such as variables, functions, structures. They have to be unique.
What are variables
A variable is a container(storage area) to hold data
What are literals?
Literals are data used for representing fixed values.
What are escape sequence
These are characters that cannot be typed or has special meaning in C programming
Example of escape sequence
\b - backspace
\f - form feed
\n - newline
\r - return
\t - horizontal tab
\v - vertical tab
\ - backlash
\? question mark
What are constants
These are variables whose values cannot be changed after declartion.
Mention C data types
char
int
float
double
short int
unsigned int
bool
enumerated type
complex type
What is the size and format of int
4,
%d,%i
What is the size and format of char
1
%c
What is the size and format of float
4
%f
What is the size and format of double
8
%lf - bascially long float
What is the size and format of short int
2
%hd - half int
What is the size and format of unsigned int
4
%u