Hi, im a newbie C programmer and i need to get a single character input from the keyboard and save it to a variable.
so i tried this (not actually what i tried but a good approximation)
anywho, thanks in advanceCode:char get_char() { char character = getc(stdin); if (character == "y") { do some stuff } return character; }