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

In which header file is the null macro defined?

1139


What are valid operations on pointers?

969


What are file streams?

794


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1772


What does a function declared as pascal do differently?

833


What is merge sort in c?

857


Can we change the value of constant variable in c?

842


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2535


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

882


What is the use of bitwise operator?

905


What does == mean in texting?

952


Explain enumerated types.

823


What is the difference between if else and switchstatement

1603


in linking some of os executables are linking name some of them

1921


What standard functions are available to manipulate strings?

847