VS Writing `hello world` - learnclang/1-helloworld GitHub Wiki

Writing the "hello world" code

Choose a text editor

Since we are not going to use the Visual Studio IDE for this example, you can use any text editor. I am going to use Sublime Text 2.0.2 for this example, which is free of charge unless you want to pay for it. You can also choose to use Notepad, which is built into Windows, and is a very simple text editor.

Writing the code

In a text editor, type the following source code.

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

Save the file

Save the file into C:\src\ and call it helloworld.c:

C:\src\helloworld.c

[Next: Compilation ->](VS Compilation)

⚠️ **GitHub.com Fallback** ⚠️