Hi
u can execute the following line
printf("%d",sizeof(int *));
If the compiler is gcc, try with gcc -m64
if out put is 8 , then it's 64 bit
Manoj
tamilselvan balan <[EMAIL PROTECTED]> wrote:
Thanks Manoj,
Then one more question How can i find my system is 16 bit or 32 bit via C
program?
mano M <[EMAIL PROTECTED]> wrote:
Yes You can access.
But u HAVE TO ACCESS BY
o +0
o+2 (if os is 16 bit)
o+2
Regards
Manoj
"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"
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download
Now! http://messenger.yahoo.com/download.php
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com