C program to get IP address of the PC

Copy the code and run the program to get the IP address of your PC in the network
 
#include<stdlib.h>
 
int main()
{
system("C:\\Windows\\System32\\ipconfig"); // this opens the ipconfig
return 0;
}

Comments