IP Address Program in C

Program to Print the internet protocol address of your currently working system.
This code will working in windowsxp and windows7 aswell as in windows8
#include<stdlib.h>
 
main()
{
   system("C:\\Windows\\System32\\ipconfig");
   system("pause");
 
   return 0;
}