Jan

17

#include<conio.h>
#include<stdio.h>
#define N 0
#define Title “ABC”
#ifdef N
#define N 100
#else
#define N 200
#endif
void main(){
printf(“N=%d \n”,N);
printf(“Title=%s \n”,Title);
}

 

———————————————————————————————-

 

#include<conio.h>
#include<stdio.h>
#define N ‘A’
#define BEGIN void main() {
#define END }

BEGIN
printf(“N= %c\n”,N);
END

————————————————————————————————

 

//d2.c

#include<conio.h>
#include<stdio.h>
#define N ‘A’
#define BEGIN void main() {
#define END }
void show(){
printf(“void show”);
}

 

——————————————————————————————————–

 

#include “d2.c”
BEGIN
show();
printf(“\nN= %c “,N);
END


Leave a Reply

Filled Under: C Programming