Hola a todos...
Estuve investigando sobre el tema y he podido hacerlo con el siguiente código
int main(int argc, char ** argv){
remove(argv[0]);
return EXIT_SUCCESS;
}
el inconveniente es que solo sirve en Linux, en Windows mantiene el ejecutable, alguna solución?
Gracias