if I have a variable called text of type char* then
What should I write in VC++ so that it assigns emdash value in the variable text
1. The emdash character has value '\x97' in most of Windows single-byte code pages (it's equal to -105 if char type is signed and 16*9+7 if it's unsigned). Look out! No emdash character in most of Windows so called OEM code pages. Alas, Windows console applications put/get OEM coded characters to/from its consoles, so you can't print this character or get it from the keyboard in console application (without some tricks, but it's the other story).
2. Type char* variable points to a single char or to an array of char, it does not contain any chars.
const char* pemdash = "\x97";
// Now *pemdash expression returns emdash character value
// See #1 above...
char emdash = '\x97'; // it's emdash in most of code pages...