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

Explain how do you declare an array that will hold more than 64kb of data?

908


How are variables declared in c?

602


What does the format %10.2 mean when included in a printf statement?

1094


What is the difference between pure virtual function and virtual function?

656


Explain pointers in c programming?

640






What are the functions to open and close the file in c language?

597


Can you add pointers together? Why would you?

651


What is methods in c?

649


What is the meaning of && in c?

554


What extern c means?

547


How can you be sure that a program follows the ANSI C standard?

1135


Write programs for String Reversal & Palindrome check

601


What does c mean in standard form?

604


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1385


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

776