|
-
June 4th, 2012, 11:49 PM
#1
How to find the architecture of the system using pointers?
Hi,
I have a program (below)
int main() {
int x = 1;
char *y = (char *) &x;
printf("%d\n", *y);
}
The output will be either "0" or "1" depending on the architecture of the system.
When I executed on my system I got output as "1", now what is the architecture of my system is it 32 bit or 64 bit?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|