Can somebody give simple c-program to find whether my machine is 16-bit or 32-bit or 64-bit ?
Can somebody give simple c-program to find whether my machine is 16-bit or 32-bit
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are concern about linux OS only then you can use uname() call.You can pass struct utsname to this API and can get the details. You can get further details on following URL
http://linux.die.net/man/2/uname
Also looking into the uname command source code can help you more on this.