how to use enum datatype?Please explain me?

Answer Posted / praphulla

It automatically passes values to declared varibles.
ex: enum{red,green,blue}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

820


What is this pointer in c plus plus?

787


Why pointers are used?

816


write a programming in c to find the sum of all elements in an array through function.

1904


Why do we use header files in c?

786


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1565


What is action and transformation in spark?

815


what are the 10 different models of writing an addition program in C language?

1638


What is the purpose of ftell?

808


What is static identifier?

888


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

834


What are the benefits of c language?

849


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

836


What is string concatenation in c?

757


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

937