Is it possible to use char* string1 to perform scanf? char string2[10] will only able to scanf a string, right? Ty
Is it possible to use char* string1 to perform scanf? char string2[10] will only able to scanf a string, right? Ty
Yes you can use pointers...
If you look up scanf() in your compiler's library documentation, I think you'll find it *requires* pointers.