snprintf is working fine when i am not using append function . But as soon as i use append function snprintf crashes . Please suggest
why snprintf is crashing after append . What is special with append function which is crashing this program
Below is the program.
using namespace std;
string name="ESACPE ";
name.append("hello '\\' ");