char pointer working in scanf but not in cin.

Printable View