why is this not working??

micsom's Avatar, Join Date: Oct 2008
Go4Expert Member
#include<stdio.h>
#define TEST_MACRO SUM
#define TEST_VARIABLES (2,4)

void TEST_MACRO TEST_VARIABLES {
printf("hi");
}
void main() {
TEST_MACRO TEST_VARIABLES;

}



it is showing an error ") Expected"
oogabooga's Avatar
Ambitious contributor
What you have amounts to this:
Code:
void SUM (2,4) {
  printf("hi");
}

void main() {
  SUM (2,4);
}
Do you see the problem?
micsom's Avatar, Join Date: Oct 2008
Go4Expert Member
i am such an I****t....

thanx for the reply...