C Compiler

C compiler is a software that translates human-readable C language code into machine code or an intermediate code that can be executed by a computer’s central processing unit (CPU).

There are many C compilers available in the market, such as GNU Compiler Collection (GCC)Microsoft Visual C++ CompilerClangIntel C++ Compiler, and TinyCC (TCC).

For this tutorial, we will be using the GNU-based online C compiler provided by w3wiki which is developed for beginners and is very easy to use compared to other compiler/IDE’s available on the web.

Print Hello World using C Programming

C
#include <stdio.h>
 
int main() {
printf("Hello World! I Don't Give a Bug");
return 0;
}

Output

Hello World! I Don't Give a Bug

“Give this C code a try, and here’s a fun challenge: print ‘Hello World’ along with your name!”

C Programming Language Tutorial

In this C Tutorial, you’ll learn all C programming basic to advanced concepts like variables, arrays, pointers, strings, loops, etc. This C Programming Tutorial is designed for both beginners as well as experienced professionals, who’re looking to learn and enhance their knowledge of the C programming language.

Similar Reads

What is C?

C is a general-purpose, procedural, high-level programming language used in the development of computer software and applications, system programming, games, and more....

Getting Started With C Tutorial

Start your coding adventure with our free C Tutorial. A perfect C programming tutorial for beginners and advanced coders alike, this tutorial is your key to unlocking the magic of C programming. With clear explanations and fun examples....

C Basics

C Language IntroductionFeatures of C Programming LanguageC Programming Language StandardSetting Up C Development EnvironmentC Hello World ProgramCompiling a C Program: Behind the ScenesC CommentsTokens in CC IdentifiersKeywords in C...

C Variables and Constants

C VariablesConstants in CConst Qualifier in CDifferent Ways to Declare Variable as Constant in CScope Rules in CInternal Linkage and External Linkage in CGlobal Variables in C...

C Data Types

Data Types in CData Type Modifiers in CLiterals in CEscape Sequence in Cbool in CInteger Promotions in CCharacter Arithmetic in CType Conversion in C...

C Input/Output

Basic Input and Output in CFormat Specifiers in Cprintf in Cscanf in CScansets in CFormatted and Unformatted Input and Output Functions...

C Operators

Operators in CArithmetic Operators in CUnary Operators in CRelational Operators in CBitwise Operators in CLogical Operators in CAssignment Operators in CIncrement and Decrement Operators in CConditional or Ternary Operator (?:) in Csize of Operator in COperator Precedence and Associativity in C...

C Control Statements Decision-Making

Decision-Making in CC if StatementC if…else StatementC if-else-if LadderSwitch Statement in CUsing Range in switch case in CLoops in CC for Loopwhile looping in Cdo…while Loop in Cfor versus while Loopcontinue Statement in Cbreak Statement in Cgoto Statement in C...

C Functions

C FunctionsUser-Defined Function in CParameter Passing Techniques in CImportance of Function Prototype in CReturn Multiple Values From a Functionmain Function in CImplicit Return Type int in CCallbacks in CNested Functions in CVariadic functions in C_Noreturn Function Specifier in CPredefined Identifier __func__ in CMaths Functions in C...

C Arrays & Strings

C ArraysProperties of Array in CMultidimensional Arrays in CInitialization of Multidimensional Arrays in CPass Array to Functions in CPass a 2D Array as a Parameter in CData Types for Which Array is Not PossiblePass an Array by Value in CStrings in CAn Array of Strings in CDifference Between Single Quoted and Double Quoted InitializationString Functions in C...

C Pointers

C PointersPointer Arithmetics in CPointer to Pointer (Double Pointer) in CFunction Pointer in CDeclare Function Pointer in CPointer to an Array in CConstant Pointer in CPointer vs Array in CDangling, Void, Null and Wild PointersNear, Far and Huge Pointers in Crestrict Keyword in C...

C User-Defined Data Types

C Structuresdot (.) Operator in CC typedefStructure Member Alignment, Padding and Data PackingFlexible Array Members in a Structure in CC UnionsBit Fields in CDifference Between Structure and Union in CAnonymous Union and Structure in CEnumeration (or enum) in C...

C Storage Classes

Storage Classes in Cextern Keyword in CStatic Variables in CInitialization of Static Variables in CStatic Functions in CUnderstanding “volatile” Qualifier in CUnderstanding the “register” Keyword in C...

C Memory Management

Memory Layout of C ProgramsDynamic Memory Allocation in CDifference Between malloc() and calloc()What is a Memory Leak?Dynamic Array in CDynamically Allocate a 2D Array in CDynamically Growing Array in C...

C Preprocessor

C PreprocessorsC Preprocessor DirectivesHow a Preprocessor Works in C?Header Files in CDifference Between Header Files “stdio.h” and “stdlib.h”Write Your Own Header File in CMacros and their Types in CInteresting Facts About Macros and Preprocessors in C# and ## Operators in CPrint a Variable Name in CMultiline Macros in CVariable Length Arguments for MacrosBranch Prediction Macros in GCCtypedef versus #define in CDifference Between #define and const in C...

C File Handling

Basics of File Handling in CC fopen() FunctionEOF, getc() and feof() in Cfgets() and gets() in Cfseek() vs rewind() in CReturn Type of getchar(), fgetc() and getc()Read/Write Structure From/to a File in CC Program to Print Contents of FileC Program to Delete a FileC Program to Merge Contents of Two Files into a Third FileDifference Between printf, sprintf and fprintfDifference Between getc(), getchar(), getch() and getche()...

C Error Handling

Error Handling in CUsing goto for Exception Handling in CError Handling During File Operations in CC Program to Handle Divide By Zero and Multiple Exceptions...

C Programs

Basic C ProgramsControl Flow ProgramsPattern Printing ProgramsFunctions ProgramsArrays ProgramsStrings ProgramsConversions ProgramsPointers ProgramsStructures and Unions ProgramsFile I/O ProgramsDate and Time ProgramsMore C Programs...

Miscellaneous

Date and Time in CInput-output system calls in CSignals in CProgram Error Signals in CSocket Programming in C_Generics Keyword in CMultithreading in C...

C Interview Questions

Top 50 C Programming Interview Questions and AnswersCommonly Asked C Programming Interview Questions | Set 1Commonly Asked C Programming Interview Questions | Set 2Commonly Asked C Programming Interview Questions | Set 3...

Why Learn C?

C programming language is one of the most popular programming language. It is a must learn for software engineering students. C is called the mother of all modern programming languages so learning C will help you to learn other languages easily like Java, C++, C#, Python, etc. C language is faster than other programming languages like Java and Python. It can handle low-level programming and we can compile the C code in a variety of computer platforms....

C Compiler

C compiler is a software that translates human-readable C language code into machine code or an intermediate code that can be executed by a computer’s central processing unit (CPU)....

Features of C Language

There are some key features of C language that show the ability and power of C language:...

Applications of C Language

C was used in programs that were used in making operating systems. C was known as a system development language because the code written in C runs as fast as the code written in assembly language....

FAQs on C Language

Q1. How to learn C easily?...