C Output (Print Text)

Output (Print Text)

To output values or print text in C, you can use the printf() function:

Example

#include <stdio.h>

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

Continue reading C Output (Print Text)

C Statements

Statements

A computer program is a list of “instructions” to be “executed” by a computer.

In a programming language, these programming instructions are called statements.

The following statement “instructs” the compiler to print the text “Hello World” to the screen: Continue reading C Statements

C Syntax

Syntax

You have already seen the following code a couple of times in the first chapters. Let’s break it down to understand it better:

Example

#include <stdio.h>

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

Continue reading C Syntax

C Get Started

Get Started With C

To start using C, you need two things:

  • A text editor, like Notepad, to write C code
  • A compiler, like GCC, to translate the C code into a language that the computer will understand

There are many text editors and compilers to choose from. In this tutorial, we will use an IDE (see below).


Continue reading C Get Started