Console random password generator
A few things immediately jump out:


Use std::string instead of char*.
Your string is not null terminated (use of std::string fixes this)
Don't create two globals when they're only used in one place.
Don't create globals with an "uppercase" name. By common practice this is reserved for macros.
srand() and rand() are superseded by any RNG from the &lt;random&gt; header.
Don't use a do...while when a for-loop does the same job more succinctly.
Your createPassword function does two things:


It communicates with the user.
It creates a new password.


Split the logic into 2 functions.