char* vs std::string in c++ [closed]

My point of view is:

  • Never use char * if you don’t call “C” code.
  • Always use std::string: It’s easier, it’s more friendly, it’s optimized, it’s standard, it will prevent you from having bugs, it’s been checked and proven to work.

Leave a Comment