I am a beginner of C. I run the C program, but the window closes too fast before I can see anything. How can I pause the window?
I assume you are on Windows. Instead of trying to run your program by double clicking on it's icon or clicking a button in your IDE, open up a command prompt, cd to the directory your program is in, and run it by typing its name on the command line.