Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Difference between getchar() & getchar_unlocked()

$
0
0

getchar_unlocked() is usually used to get faster input.

But I have not understood the difference between the getchar_unlocked() and getchar().

Also, why is getchar_unlocked() faster and what does the term "thread safe" mean?


Viewing all articles
Browse latest Browse all 40121

Trending Articles