Abstract


Entry point function

A C program must have a function with the function signature int main(). It is the standardised entry point, ensuring proper interaction with the operating system.

What does a = b = c = 3 + 6 mean?

9 assigned to variables c, b and a.

c = 3 + 6 returns 9 which is assigned to b, then b = 9 returns 9 which is assigned to a. c = 3 + 6 returns 9 is known as side effect.

Remainder operation in C

10 % 4 gives 2, -10 % 4 gives -2. The sign of the dividend is preserved.

C Terminology


TerminologyMeaning
C VectorBasically Array
C StructsAllow grouping of heterogenous data

C Operator Precedence


  • If we want operators with lower precedence to execute first, we need to use parentheses