|
Summary |
|
C Programming Language
|
– C is a fast, small, general-purpose, platform independent programming language.
– C is used for systems programming (e.g., compilers and interpreters, operating systems, database systems, microcontrollers etc.)
– C is static (compiled), typed, structured and imperative.
– "C is quirky, flawed, and an enormous success."–Ritchie |
Basic |
– Variable declarations: int i; float f;
– Intialization: char c=’A’; int x=y=10;
– Operators: +,−,∗,/,%
– Expressions: int x,y,z; x=y∗2+z∗3;
– Function: int factorial (int n); /∗function takes int , returns int ∗/ |
|
|
|