Can anyone tell what is wrong in the below program.I want to ping an ip address which is entered by the user.
#include <iostream>
using namespace std;
int main()
{
char ip1[30];
cout<<"Enter the Ip Address";
cin>>ip1;
system("ping ip1");
return 0;
}