Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the output for the program given below

typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf("%d",g1);
}

Answer Posted / fefrf

In linux you get following error
enum.c:2: error: `BAD' redeclared as different kind of symbol
enum.c:2: error: previous declaration of `BAD'

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to check whether a number is prime or not using c?

1009


What is d'n in c?

1072


What are the 5 data types?

1049


What is conio h in c?

1002


Explain c preprocessor?

1045


How many types of functions are there in c?

1064


How can I call a function with an argument list built up at run time?

1173


What are the different types of errors?

1071


What is the full form of getch?

1182


What is a header file?

1029


What is %g in c?

1020


What is your stream meaning?

1127


What is the difference between procedural and declarative language?

1094


When a c file is executed there are many files that are automatically opened what are they files?

1037


In C language, a variable name cannot contain?

1222