Note: forwarded message attached.
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download
Now! http://messenger.yahoo.com/download.php
--- Begin Message ---
Mr Wagner,
For one of the my project application,i created a structure at run
time.The elements in the structure will vary each run time.but i know how many
elements in the structure but elements name dont know.
I thing you got a answer for your question.
bye
"Victor A. Wagner Jr." <[EMAIL PROTECTED]> wrote:
At 01:39 2006-12-26, tamilselvan balan wrote:
The structure Name always points to the first element of the structure.
Orgin + 0 == Orgin.ch it is True
but Orgin +1, Orgin+2 not points to the next elements.
Why?
you still haven't answered MY question.
Why do you think you need to do this?
"Victor A. Wagner Jr." <[EMAIL PROTECTED]> wrote:
At 19:38 2006-12-22, tamilselvan balan wrote:
Hi Friends,
Can any body tell me how to access the structure elements without
using the elements name.
short answer: no.
longer answer: portably? definitely not.
now for my question. Why do you think you need to do this?
(e.g)
typedef struct {
char *ch;
int id;
float salary;
} Base;
Base orgin;
orgin + 0 point to the first element of Base ( ch )
orgin +1 point to second element of Base (id)
orgin + 2 point to Third element of Base ( salary)
Is it possible to access the elements like this , if yes please let me to
know
Thanks&Regards,
Selvan.
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download
Now! http://messenger.yahoo.com/download.php
Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
"There oughta be a law"
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download
Now! http://messenger.yahoo.com/download.php Victor A. Wagner Jr.
http://rudbek.com
The five most dangerous words in the English language:
"There oughta be a law"
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download
Now! http://messenger.yahoo.com/download.php
--- End Message ---