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
In which header file is the null macro defined?
What are valid operations on pointers?
What are file streams?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What does a function declared as pascal do differently?
What is merge sort in c?
Can we change the value of constant variable in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
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
What is the use of bitwise operator?
What does == mean in texting?
Explain enumerated types.
What is the difference between if else and switchstatement
in linking some of os executables are linking name some of them
What standard functions are available to manipulate strings?