Wednesday, June 20, 2012

C PreProcessor and Intermediate C Code

# include <stdio.h>
# include <windows.h>

# define MAX 10


int main()
{
 static int nVariabe; // To understand the static variable constant
 int nloop=0;

    for (;nloop<MAX;nloop++)
    {
        nVariabe++;
        printf("%d static variable %d\n",nloop,nVariabe);

    }

 return 0;

}

 Please Check the For Condition .
From this code you will get the intermediate code information and understanding the C Macros.

Output for intermediate C code Generation




No comments:

Post a Comment