so in my program i have:
When I copy "cat [\n] dog" into the command line and print string, string is "cat". "dog" does not seem to be consumed by fgets because next time I press enter string prints as "dog".Code:fgets(string, 80, stdin);
How can I make it so that fgets stores the entire "cat[\n]dog" into string?