help with WEXITSTATUS in C

when a execute this line
printf("%d\n",WEXITSTATUS(status));
i get no output, whats could be the possible causes?

---------- Post updated at 09:29 PM ---------- Previous update was at 09:27 PM ----------

nvm i figured it out, u can delete this thread