Using the register specifier

Wednesday, October 15, 2014
/* 1404.c: Using the register specifier */
#include <stdio.h>

int main()
{
    /* block scope with the register specifier */
    register int i;
    int MAX_NUM=10;
    for (i=0; i<MAX_NUM; i++){
        printf("Value of i:%d\n",i);
    }
    return 0;
}

Copyright @ 2015 Tron!

Labels

Blog Archive