Hii Sudha
 
             I dont know whether u have beginers / Intermediate / Professional C skills though i am going to answer ur question.
 
            enum is a very handy tools in C programming & development.
Right now i am working in Network protocol development and here a lots of enum are frequently used. enum is a used defined datatype where we define a data set with initializing the first value, the subsequent takes next values.
 
 i.e enum A {
                    a=5,
                    b,            // This will be 6
                    c,           // This will be 7
                    d,           // This will be 8    
                    e            // This will be 9
                 };   
 
 
but wait thats not all run the following program and try to understand why this happens:
    
#include<stdio.h>
#include<conio.h>
 
enum A {
                    a=5,
                    b,           
                    c,           
                    d=88,           
                    e,
                    f,
                    g=34,
                    h         
             };   

void main()
{
 clrscr();
 printf("%d  %d  %d  %d  %d  %d  %d  %d",a,b,c,d,e,f,g,h);
 getch();
}
 
Just go through this.
 
You will understand in a single <enum> multiple initialization can be possible.
 
Nice day.
 
If u r interested in Network Protocol Development or Routing Algorithm development in C-write me at : [EMAIL PROTECTED]
 
Regards
 
Tushar Chowdhury
 
Research and Development Cell
Matrix Technologies
Kolkata
Dial: 09830297632

Sai sudha S <[EMAIL PROTECTED]> wrote:

hye alll.

could any one help me to write advanced programes using enum data types..

plzz..

 

bye

sudha


Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.

To unsubscribe : [EMAIL PROTECTED]





Do you Yahoo!?
Meet the all-new My Yahoo! � Try it today!

To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=:HM/A=2434971/rand=820063782


Yahoo! Groups Links

Reply via email to