Friday, 2 November 2012

example of define program


#include <stdio.h>

#define X1  b+c

#define X2  X1+X1

#define X3  X2*c+X1-d
 
#define X4  2*X1+3*X2+4*X3

main( )

{

  int b=2;

  int c=3;

  int d=4;

  int e=X4;

  printf(" %d  %d  %d  %d  %d ", e, X1, X2, X3, X4);

  return 0;
}

2 comments: