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:-
0 Comment(s)