dshrenik
asked on
char pointer to accept string input
Please tell me how to correct the following code:
char *s;
scanf("%s", s);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, I forgot to mention that you'll have to add these includes before you can use this:
ZOPPO
#include <string>
#include <iostream>
ZOPPO
ASKER
Thanks!