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 | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4124
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
