What are register variables? What are the advantages of using register variables?

If a variable is declared with a register storage class,it is known as register variable.The

register variable is stored in the cpu register instead of main memory.Frequently used variables

are declared as register variable as it’s access time is faster.