C program to convert decimal to binary: c language code to convert an integer from decimal number system(base-10) to binary number system(base-2). Size of integer is assumed to be 32 bits. We use bitwise operators to perform the desired task.
Programming@NewLevel
Here you will get all programs of C JAVA etc.As the name of blog suggest it is new level or you can say high level programming. Here all the programs are other than syllabus and somewhat crazy stuff. So enjoy implementing the codes and feedback us in the feedback form.
Search This Blog
Tuesday, October 13, 2015
This is our first post.
This c program prints IP (internet protocol) address of your computer, system function is used to execute the command ipconfig which prints IP address, sub net mask and default gateway. The code given below works for Windows xp and Windows 7. If you are using turbo c compiler then execute program from folder, it may not work when you are working in compiler and press Ctrl+F9 to run your program.
the program is:
This c program prints IP (internet protocol) address of your computer, system function is used to execute the command ipconfig which prints IP address, sub net mask and default gateway. The code given below works for Windows xp and Windows 7. If you are using turbo c compiler then execute program from folder, it may not work when you are working in compiler and press Ctrl+F9 to run your program.
the program is:
#include<stdlib.h> int main() { system("C:\\Windows\\System32\\ipconfig"); return 0; }
Run the code and see the result
Subscribe to:
Posts (Atom)