main()
{
enum{red,green,blue=6,white};
pf("%d%d%d%d", red,green,blue,white);
return 0;
}

a)0 1 6 2
b)0 1 6 7
c)Compilation error
d)None of the above

Answer Posted / rajesh

Answer : b

check it in www.codepad.org

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the functions strcat() and strcmp()?

596


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4171


What is echo in c programming?

553


What is union in c?

630


Explain the use of keyword 'register' with respect to variables.

586






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

589


What does the message "automatic aggregate intialization is an ansi feature" mean?

689


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

1644


How can I discover how many arguments a function was actually called with?

628


Explain what is the benefit of using enum to declare a constant?

582


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1585


in iso what are the common technological language?

1631


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

802


What is the best way of making my program efficient?

561


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.

1374