main
{
int a=40;
printf ("%d",a);
}
what is the output of this problem.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted May 22, 2013, 9:02 AM EDT
It's full of syntax errors and won't compile.
Jignesh TrivediRank #16 · 50.3K reputationPosted May 22, 2013, 7:47 PM EDT
hi,
Agree with Vulpes.
it give syntax error because same variable "a" is declare.
#define a 10
main
{
int b=40;
printf ("%d",a);
printf ("%d",b);
}
hope this will help you.