Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • C Program to Display the IP Address of the System

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 988
    Comment on it

    Hello Everyone,

    In this blog, We are going to know that how to display the ip address of the system using c programming. We can find the IP address, Gateway, Subnet Mask by typing ipconfig in command prompt. Here we are going to make a C program to display above things.In this we are using the 

    #include<stdlib.h> and its system() function.

    CODE:-

    #include<stdlib.h>
     
    int main()
    {
       system("C:\\Windows\\System32\\ipconfig");
     
       return 0;
    }

    system() function passes the command name by command to host the  environment to be execute by command processor. 

    OUTPUT:-

    ip address

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: