C Programming Tutorial 49, Character Functions pt2 and Escape Characters

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

"I help a lot" is correct. This is why: \r moves the cursor to the beginning of the line. It will then overwrite the word "books" with "I help a lot". Basically all the characters that come after \r will all be printed at the beginning of the line, while some previous printed characters may not be overwritten by the characters after \r. This is only true if there are more characters before \r than after.

AYearOld
Автор

exactly what came to my mind when he demonstrated this >D

simransingh
Автор

@cmdahal 1080p fullscreen, it really helps.

xynix
Автор

is there a way to define multiple beep without having having to put the \a\a\a? for all the beeps i want for example if i want 10 beeps in row can i do it with a single code or i have to make a while or something?

thewhisperinyourears
Автор

i have a problem with \r !!
my code: printf("books\rl"); gives me 'looks' when i run it.
but, printf("books\rl help a lot"); gives me 'l help a lot' instead of 'looks help a lot"
wth?!

simransingh
join shbcf.ru