How do I scanf a char pointer?
How do I scanf a char pointer? Answers First of all, %s in scanf() expects a pointer to char , not a pointer to pointer to char . The following should do what you need for the first case. Use scanf(“%lf”, n1) for double ; Note the “l” (el, not “one”). Can you use scanf […]