Why C is the most powerful language

 

  1. Modularity and less keyword unlike other languages that have dedicated keyword for simple math functions, it has libraries more instead of keywords that makes it efficient.
  2. Complex Declarations , using complex declaration you can define any real world entity
  3. Storage classes such as extern & register, inline, volatile, const keyword which are low level in nature etc.
  4. Direct mapping of constructs to memory segments
  5. Pointers with Pointer typecasting & treating Function name as pointer , i think pointers are useless without pointer typecasting. Function name is treated as pointer in C which makes it very powerful and also pointer arithmetic.
  6. Wide varieties of types from long long to char , floating type such as float or double but has weak type checking.
  7. void */int * as a generic data storage
  8. Use of expression in every place whether it’s in for , while or if
    for(expression ; expression; expression);
  9. Bit fields, Structural Packing and Padding, Reordering of structures
  10. inline assembly using asm keyword or #asm, still nothing is faster than Assembly.
  11. Direct compilation to native machine code instead of interpretation.
  12. No runtime error/linker error concept only shows Warning or crashes , example of runtime error can be array out of bounds or NULL pointer access.
  13. No Garbage collector but manual memory management makes it very tough & fast language.
  14. Tons of other memory management concepts in C and tightly associated with UNIX OS.

Comments

Popular posts from this blog

OS Books

How to get symbol table in gcc/g++ ?

Memory corruption issue