Loading...
C Get Started

C Get Started

In this tutorial, we will learn about Get Started, Syntax, and Basic Program of C.


Get Started

To Start using C, you need two things:

  • A text-editor (like Notepad++, Code::Blocks and so on.), to write C programming code.
  • A compiler, like GCC, to translate the C code into Assembly language code (the code that computer will understand).

C Compilers and IDE

There ara many C compilers and IDEs are available which you can use to compile and run :


Install IDE

  • An IDE (Intefrated Development Environment) is used to edit and Compile the code.
  • Popular IDE's include - Code::Blocks, Eclipse, Dev-C++ and Visual Studio.
  • These above mention IDE's are Open Source and they can be used to edit and debug C code.
  • We recommend Code::Blocks for practice our examples, which we believe is a good place to start coding.

Quickstart

  • Let's create our First C file in Code::Blocks.
  • Open Codeblocks and go to File > New > Empty File.
  • Write the following C Code and save the file as myfirstprogram.c (File > Save File as):
#include <stdio.h>
int main() {
  // printf() displays the string inside quotation
  printf("Hello, World!");
  return 0;
}

Output

Hello World!

Focus on how to run the code. and see the result of the above program.

Don't worry if you don't understand the above code: you can Click here to see the full details of First C Program.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of Get Started in C.

Keep Learning : )

In the next tutorial, you'll learn about C Keywords & Identifiers.

- Related Topics