Tutorials
Videos
Menu
Log in
Website
Pro
NEW
HTML
CSS
JAVASCRIPT
SQL
PYTHON
PHP
BOOTSTRAP
HOW TO
W3.CSS
JAVA
JQUERY
C
C++
C#
R
React
Dark mode
Dark code
×
Tutorials
HTML and CSS
Learn HTML
Learn CSS
Learn RWD
Learn Bootstrap
Learn W3.CSS
Learn Colors
Learn Icons
Learn Graphics
Learn SVG
Learn Canvas
Learn How To
Learn Sass
Data Analytics
Learn AI
Learn Machine Learning
Learn Data Science
Learn NumPy
Learn Pandas
Learn SciPy
Learn Matplotlib
Learn Statistics
Learn Excel
XML Tutorials
Learn XML
Learn XML AJAX
Learn XML DOM
Learn XML DTD
Learn XML Schema
Learn XSLT
Learn XPath
Learn XQuery
JavaScript
Learn JavaScript
Learn jQuery
Learn React
Learn AngularJS
Learn JSON
Learn AJAX
Learn AppML
Learn W3.JS
Programming
Learn Python
Learn Java
Learn C
Learn C++
Learn C#
Learn R
Learn Kotlin
Learn Go
Learn Django
Learn TypeScript
Server Side
Learn SQL
Learn MySQL
Learn PHP
Learn ASP
Learn Node.js
Learn Raspberry Pi
Learn Git
Learn AWS Cloud
Web Building
Create a Website
NEW
Where To Start
Web Templates
Web Statistics
Web Development
Code Editor
Test Your Typing Speed
Play a
Cyber Security
Accessibility
Blog
Data Analytics
Learn AI
Learn Machine Learning
Learn Data Science
Learn NumPy
Learn Pandas
Learn SciPy
Learn Matplotlib
Learn Statistics
Learn Excel
Learn Google Sheets
XML Tutorials
Learn XML
Learn XML AJAX
Learn XML DOM
Learn XML DTD
Learn XML Schema
Learn XSLT
Learn XPath
Learn XQuery
×
Tutorials
Spaces
Videos
Shop
Pro
C
Tutorial
C HOME
C Intro
C Get Started
C Syntax
C Output
Print Text
New Lines
C Comments
C Variables
C Data Types
C Constants
C Operators
C If...Else
C If...Else
C Short Hand If
C Switch
C While Loop
C For Loop
C Break/Continue
C Arrays
C Strings
C User Input
C Memory Address
C Pointers
C
Functions
C Functions
C Function Parameters
C Function Declaration
C Recursion
C Math Functions
C
Structures
C Structures
C
Examples
C Examples
C Quiz
C Compiler
C
Examples
❮ Previous
Syntax
Create a simple "Hello World" program
Syntax Explained
Output/Print
Use printf to print text
Using many printf functions
Insert a new line with \n
Output Explained
Comments
Single-line comment before a line of code
Single-line comment at the end of a line of code
Multi-line comment
Comments Explained
Variables
Create an integer variable and print it
Add a variable to another variable
Declare many variables of the same type with a comma-separated list
Constant (unchangeable) variable
Variables Explained
Data Types and Format Specifiers
A demonstration of different data types and format specifiers
Data Types and Format Specifiers Explained
Operators
Addition operator
Subtraction operator
Division operator
Modulus operator
Increment operator
Decrement operator
Assignment operator
Addition assignment operator
Comparison operator
Logical operators
Operators Explained
If...Else (Conditions)
The if statement
The else statement
The else if statement
If...Else Explained
Switch
The switch statement
The switch statement with a default keyword
Switch Explained
Loops
While loop
Do while loop
For loop
Break a loop
Continue a loop
Loops Explained
Arrays
Create and access an array
Change an array element
Loop through an array
Arrays Explained
Strings
Create a string
Another way to create a string
Access string characters
Change string characters
Strings Explained
User Input
Input a number and print the result
Input two numbers and print the sum
User Input Explained
❮ Previous