I run the simplesest c hello world function in codelite just to see it works well
void main ( )
{
printf("hello world\n");
}
the cmd promt opens for q brief momet and then closes down immediatly.
what's wrong and how can I keep the cmd prompt without closing?
I excepct for the cmd prompt to stay

From C11:
After the call to
printf; control reaches the closing brace}, terminatesmain, and thus returns to the host environment with an exit status ofEXIT_SUCCESS, or0.Also note that it states: