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


Please Help Members By Posting Answers For Below Questions

Define C in your own Language.

635


Explain how do you print an address?

655


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

667


How can I implement sets or arrays of bits?

601


Dont ansi function prototypes render lint obsolete?

601






What is c mainly used for?

593


What is the difference between text files and binary files?

674


What is #define used for in c?

609


What are the advantages of c language?

664


Differentiate abs() function from fabs() function.

592


Can we assign string to char pointer?

584


What is abstract data structure in c?

525


.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; }

1994


What is extern keyword in c?

639


What is %d used for?

580