enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
Answer Posted / vignesh1988i
the ascii values of B,B,G will be printed..............
since these black,blue and green are strings given directly
in the printf statements..... so the base address will be
going to the function definition of printf......
Is This Answer Correct ? | 0 Yes | 13 No |
Post New Answer View All Answers
Define C in your own Language.
Explain how do you print an address?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
How can I implement sets or arrays of bits?
Dont ansi function prototypes render lint obsolete?
What is c mainly used for?
What is the difference between text files and binary files?
What is #define used for in c?
What are the advantages of c language?
Differentiate abs() function from fabs() function.
Can we assign string to char pointer?
What is abstract data structure in c?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What is extern keyword in c?
What is %d used for?