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
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is action and transformation in spark?
What is an identifier?
What is header file in c?
How would you rename a function in C?
What are categories used for in c?
Write a code to generate divisors of an integer?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What are the characteristics of arrays in c?
Can you assign a different address to an array tag?
Linked lists -- can you tell me how to check whether a linked list is circular?
please send me the code for multiplying sparse matrix using c
Is a pointer a kind of array?
What is structure data type in c?
What is the difference between a function and a method in c?