Except OOP, why is C++ better than C? [closed]

Non-OO features that C++ has that C does not:

  1. Templates
  2. Function overloading
  3. References
  4. Namespaces
  5. You can use structs and enums without writing struct or enum before every declaration or using typedefs.
  6. Even if you don’t define your own classes, using C++’s string and container classes is still often more convenient and safe to work with than c-style strings and arrays.
  7. Type safety (even though some would call it weak)
  8. Exceptions
  9. Variable declarations in conditionals, C99 only has it in for

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)