Not correct usage because the compiler has no way of knowing that the last argument is actually a null pointer. So need to cast.
execl("C:\\WINDOWS\\NOTEPAD.EXE",(const char *) 0);