hi..
#define loop() for(;b<c;b++)
#define print(a) printf("%d ",a);
int main()
{
............
...........
............
..............
int i=0,j=0;
loop(i,15)
{
loop(j,15)
{
print(z[l][m])
}
printf("\n");
}
}
This code print some integers , but isn't printing all in the desired way.
But, when I change the #define statement in this way,
#define loop(b,c) for(b=0;b<c;b++)
then, it is working correctly means it is giving o/p as desired. just difference is the
b=0
in the #define, lthoguh i have initialized i and j in the main loop, then why is it expecting me to initalize in the preprocessor directive ?
thanks. waiting for reply.