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

register as input in C

$
0
0

i found it while i was going through some solutions

inline void fastread(int *a) {

register char c;

while(c<33) c=getchar_unlocked();

*a=0;

while(c>=33) {

a=a*10+c-'0'; c=getchar_unlocked();

} }

can any one pls explain what are we trying to achieve with this how can it reduse the run time effectively !!


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>