Help! My C code isn’t running on VS Code

0
13
Asked By CuriousCoder99 On

I'm a complete beginner who just started learning C programming yesterday, but I'm having trouble getting my simple code to run. I've already downloaded and set up the compiler following instructions from a tutorial video. I'm on Windows and using VS Code. Unfortunately, I can't figure out how to share the code picture here, but the code I wrote is:

#include

int main() {
printf("Hello World");
return 0;
}

I really need some guidance!

3 Answers

Answered By NerdyNinja47 On

Can you clarify what you mean by "not running"? How exactly are you trying to run your code, and what happens? It helps to know these details to figure out the problem.

Answered By TechGuru88 On

Your code looks fine, but the issue seems to be with your environment setup. Are you getting any error messages when you try to run it?

Answered By HelpfulHarry21 On

It sounds like you might be missing a certain setup for your compiler. If you're seeing an error about 'WinMain', it often means that your project isn't set up as a console application. Make sure you're compiling it correctly with `gcc` and check your project settings in VS Code.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.