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
How can a program be made to print the name of a source file where an error occurs?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Write a program to print "hello world" without using a semicolon?
What is #include stdio h and #include conio h?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Which programming language is best for getting job 2020?
Explain the properties of union. What is the size of a union variable
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
How do you override a defined macro?
what is bit rate & baud rate? plz give wave forms
Why doesn't C support function overloading?
c program for searching a student details among 10 student details
Explain what is output redirection?
What is merge sort in c?