Thread (2 messages) 2 messages, 2 authors, 2011-01-27

How to identity processor architecture

flat view

From: prabhu <hidden>
Date: 2011-01-27 06:09:48

Hi Dear,

I just wanna to know my processor architecture(32bit or 64 bit) through 
c programming.

According to me the sizeof of pointer will give the result. Like below 
coding.

int main()
{
   int *ptr;
   printf("%d",sizeof(ptr));
}

Please correct me if i am wrong...

Any suggestion or help would be appreciated.

Thanks,
Prabhu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help