C.Preprecessors History
Hide minor edits - Show changes to markup
September 03, 2005, at 10:07 PM
by �zg�n
Changed line 1 from:
to:
September 03, 2005, at 05:27 PM
by �zg�n
Added lines 1-47:
(:code lang=c:)
#include <stdio.h>
// #define - sabit
#define X 2
// #define - Bir program parcasina simgesel isim verilmesi.
#define dongu(x,y) for(x=0;x<y;x++)
// #define - makro fonksiyon
#define topla(a,b) a+b
// #if, #else, #endif
#if X
#define Y 5
#else
#define Y 3
#endif
// #ifdef, #else, #endif
#ifdef X
#define Y 1
#else
#define Z 1
#endif
// #ifndef, #else, #endif
#ifndef X
#define X 1
#else
#define Z 2
#endif
main(int argc, char *argv[]) {
printf("Program: %s \nSatir sayisi: %d \n", __FILE__, __LINE__);
return 0;
}