Use register int in function : Register « Data Type « C / ANSI-C






Use register int in function

  
#include <stdio.h>

main() {
    register int  i = 0; 

    for( i = 0; i < 2; i++) {
        printf("i = %d\n",i);
    }

}


           
       








Related examples in the same category

1.Register variable: faster