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
Tell me what is the purpose of 'register' keyword in c language?
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.
What is difference between union All statement and Union?
What is wrong with this program statement? void = 10;
What are header files? What are their uses?
What is hashing in c?
What is the difference between volatile and const volatile?
What is the maximum no. of arguments that can be given in a command line in C.?
What is structure of c program?
How many bytes are occupied by near, far and huge pointers (dos)?
Write a program with dynamically allocation of variable.
What does *p++ do? What does it point to?
How does sizeof know array size?
What is data structure in c programming?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?