Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 27

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 88

Answer:

enum colors {BLACK,BLUE,GREEN}
main()
{

printf("%d..%d..%d",BLACK,BLUE,GREEN);

return(1);
}


Answer:
0..1..2


Explanation:
enum assigns numbers starting from 0, if not explicitly defined.


Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 27 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: