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
What are the 5 organizational structures?
Write a factorial program using C.
What is the difference between c and python?
Why do we use header files in c?
What is volatile c?
What are the functions to open and close file in c language?
Explain what is the difference between functions abs() and fabs()?
What are nested functions in c?
Can a local variable be volatile in c?
Is boolean a datatype in c?
How do you do dynamic memory allocation in C applications?
In a switch statement, what will happen if a break statement is omitted?
Explain low-order bytes.
Is main is a keyword in c?
what do you mean by inline function in C?