register as input in C

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=a10+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 !!

check this out…http://discuss.codechef.com/questions/11364/fast-io-discussion …it is the same question…hope u dont mind if i close this ques as a duplicate…pls search the forum before asking ques…:slight_smile:

got it thnks i’ll mind that for future :slight_smile:

//