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
Can a local variable be volatile in c?
How can I manipulate individual bits?
Explain void pointer?
shorting algorithmS
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What is wrong in this statement?
What is static identifier?
Tell me when would you use a pointer to a function?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is c programming structure?
Differentiate between full, complete & perfect binary trees.
What does 2n 4c mean?
What is 2 d array in c?