Answers for "How to exit a c program"

C
0

How to exit a c program

#include <stdlib.h>
#include <stdio.h>

int main()
{
	char choice;
  	choice = getchar();
  	if(choice=='Q') {
    	exit(0);    
    } else {
    	printf("Forget Code Retains");
    }

 	return 0;
} 
Posted by: Guest on March-05-2021

Code answers related to "C"

Browse Popular Code Answers by Language