Tuesday, February 10, 2015

IP Address Print

Program to print the IP address of the system. #include<stdlib.h> int main() {    system("C:\\Windows\\System32\\ipconfig");      return 0; } Output: Windows IP Configuration Ethernet adapter Local Area Connection:    Connection-specific DNS Suffix  . :    Link-local IPv6 Address . . . . . : fe80::71ab:34b8:8ff1:4eef%12    IPv4 Address. . . . . . . . . . . : 192.168.1.100    Subnet Mask . . . . . . . . . . . : 255.255.255.0    Default Gateway . . . . . . . . . : fe80::ed2:b5ff:fe01:ce78%12                                        192.168.1.1

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2015 Code Fervor™ is a registered trademark.

Designed by Templateism By Naman Kumar