15:9: error: incompatible types when assigning to type ‘char[3]’ from type ‘char *’
#include <stdio.h>
int main(int argc, char *argv[])
{
char servIP[3];
int servPortNum;
if(argc<3)
{
printf("Usage: clientApp servIP servPortNum\n");
}
servIP = argv[1];
servPortNum = atoi(*argv[2]);
}
But are you sure
servIPis big enough for an IP address?