This is a line from K&R(section 4.7) regarding register variables.
Now my doubt is :Quote:
A register declaration advises the compiler that the variable in question will be heavily used. The idea is that register variables are to be stored in machine registers,which may result in smaller and faster programs.but compilers are free to ignore the advice.
If by declaring any variable register, that variable gets stored in machine registers, where are other variables(auto,static,extern) get stored. i mean if i do
this reserves space for 'a' in memory somewhere but memory is also a group of registers, so in effect it also gets stored in registers?Code: