I know that #define replaced before the compiling to real values. so why the first code here compile with no error, and the 2nd not?
the 1st;
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("bc");
return 0;
}
the 2nd(not working);
#include <stdio.h>
#include <stdlib.h>
#define Str "bc";
int main()
{
printf(Str);
return 0;
}
error: expected ')' before ';' token
thank you for the answers, and sorry about my poor English...
;after"bc"in your first example.