#include<conio.h>
#include<stdio.h>
#define abc 7
int main()
{
int abc=1;
printf("%d",abc);
getch();
return 0;
}
why this program is giving compile time error
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re assigning
7=1which is invalid. Since you’ve definedabcto be 7, the preprocessor translates the line:to:
Which is a syntax error in C (my
gccsays syntax error before numeric constant).