Category Archives: C Programming

Chapter 23: Sequence points

Section 23.1: Unsequenced expressions Version ≥ C11 The following expressions are unsequenced: a  +  b; a  -  b; a  *  b; a  /…
Continue reading

Chapter 22: Pointers

A pointer is a type of variable which can store the address of another object or a function. Section 22.1: Introduction A pointer…
Continue reading

Chapter 21: Formatted Input /Output

Section 21.1: Conversion Specifiers for printing Conversion Specifier Type of Argument                                                        Description Note that length modifiers can be applied to %n (e.g. %hhn…
Continue reading

Chapter 20: Files and I/O streams

Parameter                                                                             Details const char *mode A string describing the opening mode of the file-backed stream. See remarks for possible values. int whence Can…
Continue reading

Chapter 19: Command-line arguments

Parameter                                                                             Details argc argument count - initialized to the number of space-separated arguments given to the program from the command-line as well as…
Continue reading

Chapter 18: Declaration vs Definition

Section 18.1: Understanding Declaration and Definition A declaration introduces an identifier and describes its type, be it a type, object, or function. A…
Continue reading

Chapter 17: Initialization

In the absence of explicit initialization, external and static variables are guaranteed to be initialized to zero; automatic variables (including register variables) have…
Continue reading

Chapter 16: Selection Statements

Section 16.1: if () Statements One of the simplest ways to control program flow is by using if selection statements. Whether a block…
Continue reading

Chapter 15: Iteration Statements/Loops: for, while, do-while

Section 15.1: For loop In order to execute a block of code over an over again, loops comes into the picture. The for…
Continue reading

Chapter 14: Standard Math

Section 14.1: Power functions - pow(), powf(), powl() The following example code computes the sum of 1+4(3+3^2+3^3+3^4+...+3^N) series using pow() family of standard…
Continue reading