Saturday 18 November 2017

General Points regarding C programming language

  1. The three important aspects of any language are:
    1. The way in which it stores the data
    2. The operators it uses to transform and combine data
    3. How it accomplishes I/P & O/P
  2. C was developed at AT & T's Bell Labs, USA in 1972 by Dennis Ritchie.
  3. The major advantages that promoted its use were its reliability, ease of use and simplicity.
  4. Languages can be classified as:
    1. High Level/Problem Oriented Languages: Ensure faster development or better programming efficiency. Examples: FORTRAN, PASCAL, Java, etc.
    2. Low Level/Machine Oriented Languages: Ensure faster execution or better program execution. Example: Assembly language
    3. C fits in between the two categories, hence, it is often termed as Middle level language. C not only allows bit-oriented operations, Direct Memory Access and usage of pointers but also provides high level constructs. Hence, both code readability and performance are ensured.
  5. Exponentiation operations allowed in higher level languages (2**3, 2^3) aren't considered valid in C.
  6. Types of Instructions are:
    1. Sequence Control,
    2. Decision Control,
    3. Loop Control &
    4. Case Control Instruction
  7. The usage of nested if-else's (Decision control) can be minimised by using logical operators (&&, ||). Nested if-else increases the complexity and lines of code.
  8. Conditional operators - Expression1 ? Expression2 : Expression3. As only one statement is allowed after ? or :, hence, usage in serious programming is limited.
  1. Other points will be added soon...

No comments:

Post a Comment