Why the below program throughs error during compilation?

#include<stdio.h>
#include<conio.h>
enum
{
ZERO,
ONE,
TWO,
};

main()
{

printf("%d",&TWO);
getch();
}

Answer Posted / modassir alam

TWO or any enum variable not hold memory address hence error

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is the purpose of 'register' keyword in c language?

825


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1799


What is difference between union All statement and Union?

875


What is wrong with this program statement? void = 10;

1033


What are header files? What are their uses?

849


What is hashing in c?

901


What is the difference between volatile and const volatile?

756


What is the maximum no. of arguments that can be given in a command line in C.?

895


What is structure of c program?

812


How many bytes are occupied by near, far and huge pointers (dos)?

912


Write a program with dynamically allocation of variable.

861


What does *p++ do? What does it point to?

820


How does sizeof know array size?

847


What is data structure in c programming?

817


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

822