Mega Code Archive
Categories
/
C
/
Code Snippets
Define Macro and use it as the loop condition
#include
#define MAX 100 int main(void) { int j; for( j = 0; j < MAX; j++) printf("%d ", j); return 0; }