I'm learning C and everything is going wrong. The very simple programs I'm compiling are spawning three of the same processes all of which I can't kill — not through taskmanager, taskkill, or ctrl+c. For instance this program:
#include <stdio.h>
int main() {
int a = 0;
printf("Enter a number: ");
scanf("%d", &a);
printf("%d", a);
return 0;
}
will only work if I write it in vim and run it with cmd prompt NOT git bash. Yet if I write the same program in atom text editor and run it with cmd prompt it doesn't work. The cmd prompt becomes unresponsive to further commands as well as git bash and it spawns three unkillable processes.
What's going wrong? How do I get sane behaviour?