Β
Experiment to find out what happens when printfβs argument string contains
\c
where c is some character not listed above.Β
#include <stdio.h> main() { printf("hello, "); printf("world \c"); printf("\n"); }
The result of the program is:
hello, world c
The c is not a valid escape sequence.
Run it here: https://replit.com/@AleemIsiaka/clioc12#ec1-2/main.c