my instructor wants us to write a encryption program and gave us the following code. I know what it does, but what i would like to know is how does it work?would some explain it?
btw, does '\b' mean a [space]?Code:void getMessage(char*p){ char*s = p; printf("Enter a message to be encryptes -> "); while((*s=getch())!="\n"){ if(*s == '\b'){ s--; s=(s<p) ? p : (printf("\b \b"),s); } else { printf("*"); s++; } } *s='\0\; }
many thanks to any help!