HomeSimulators › C Programming

C Programming

Program flow, variables, loops, arrays, pointers

50+ simulators are FREE — no login needed! Try them now. Sign up to unlock all 1209 simulators. Sign Up Free

99 simulators found.

C01 · C Programming

C Program Structure Flow

C Program Structure Flow — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Free Open →
C02 · C Programming

C Variables and Data Types Memory View

C Variables and Data Types Memory View — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Free Open →
C03 · C Programming

C Operators Dry Run

C Operators Dry Run — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Free Open →
C04 · C Programming

C if else Flow

C if else Flow — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Free Open →
C05 · C Programming

C for Loop Dry Run

C for Loop Dry Run — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Login Open →
C06 · C Programming

C while Loop Dry Run

C while Loop Dry Run — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Login Open →
C07 · C Programming

C Array Memory View

C Array Memory View — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Login Open →
C08 · C Programming

C String Character View

C String Character View — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Login Open →
C09 · C Programming

C Function Call Stack

C Function Call Stack — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Login Open →
C10 · C Programming

C Pointer Address Diagram

C Pointer Address Diagram — interactive visual simulator with step-by-step explanation and exam answer format.

Beginner Login Open →
C11 · C Programming

Sum of N Natural Numbers

Add the first N natural numbers using a for loop.

Beginner Login Open →
C12 · C Programming

Factorial of a Number

Compute N! by multiplying 1 to N in a loop.

Beginner Login Open →
C13 · C Programming

Fibonacci Series

Print the first N terms of the Fibonacci series.

Beginner Login Open →
C14 · C Programming

Reverse a Number

Reverse the digits of a number using a loop.

Beginner Login Open →
C15 · C Programming

Palindrome Number Check

Check if a number reads the same forwards and backwards.

Beginner Login Open →
C16 · C Programming

Count Digits

Count how many digits a number has.

Beginner Login Open →
C17 · C Programming

Sum of Digits

Add all the digits of a number.

Beginner Login Open →
C18 · C Programming

Prime Number Check

Check whether a number is prime.

Beginner Login Open →
C19 · C Programming

Prime Numbers in a Range

Print all prime numbers between two values.

Beginner Login Open →
C20 · C Programming

Armstrong Number

Check if a number equals the sum of its digits powered by digit count.

Intermediate Login Open →
C21 · C Programming

Perfect Number

Check if the sum of proper divisors equals the number.

Intermediate Login Open →
C22 · C Programming

Multiplication Table

Print the multiplication table of a number.

Beginner Login Open →
C23 · C Programming

Power of a Number

Compute a raised to the power b using a loop.

Beginner Login Open →
C24 · C Programming

GCD (HCF) of Two Numbers

Find the GCD using the Euclidean algorithm.

Intermediate Login Open →
C25 · C Programming

LCM of Two Numbers

Find the LCM using LCM = a*b/GCD.

Intermediate Login Open →
C26 · C Programming

Sum of Even Numbers

Sum of even numbers from 1 to N.

Beginner Login Open →
C27 · C Programming

Sum of Odd Numbers

Sum of odd numbers from 1 to N.

Beginner Login Open →
C28 · C Programming

Largest Digit in a Number

Find the biggest digit in a number.

Beginner Login Open →
C29 · C Programming

Strong Number

Check if the sum of digit factorials equals the number.

Intermediate Login Open →
C30 · C Programming

Decimal to Binary

Convert a decimal number to binary.

Intermediate Login Open →
C31 · C Programming

Pattern: Right Triangle Stars

Print a right-angled triangle of stars.

Beginner Login Open →
C32 · C Programming

Pattern: Inverted Right Triangle

Print an inverted right-angled triangle of stars.

Beginner Login Open →
C33 · C Programming

Pattern: Pyramid Stars

Print a centered pyramid of stars.

Beginner Login Open →
C34 · C Programming

Pattern: Inverted Pyramid

Print an inverted pyramid of stars.

Beginner Login Open →
C35 · C Programming

Pattern: Number Triangle

Print a number triangle (1, 12, 123 ...).

Beginner Login Open →
C36 · C Programming

Pattern: Floyd's Triangle

Print Floyd's triangle of continuous numbers.

Beginner Login Open →
C37 · C Programming

Pattern: Pascal's Triangle

Print Pascal's triangle.

Intermediate Login Open →
C38 · C Programming

Pattern: Diamond

Print a diamond pattern of stars.

Intermediate Login Open →
C39 · C Programming

Pattern: Hollow Rectangle

Print a hollow rectangle of stars.

Intermediate Login Open →
C40 · C Programming

Pattern: Repeated Number Rows

Print 1, 22, 333 ... pattern.

Beginner Login Open →
C41 · C Programming

Pattern: Character Triangle

Print A, AB, ABC ... pattern.

Beginner Login Open →
C42 · C Programming

Pattern: Inverted Number Triangle

Print 12345, 1234 ... pattern.

Beginner Login Open →
C43 · C Programming

Pattern: Binary Triangle

Print a 0/1 binary triangle.

Beginner Login Open →
C44 · C Programming

Pattern: Right-Aligned Triangle

Print a right-aligned star triangle.

Beginner Login Open →
C45 · C Programming

Pattern: Butterfly

Print a butterfly pattern of stars.

Advanced Login Open →
C46 · C Programming

Swap Two Numbers

Swap two numbers with and without a temp variable.

Beginner Login Open →
C47 · C Programming

Reverse a String

Reverse a string character by character.

Beginner Login Open →
C48 · C Programming

String Palindrome Check

Check if a string is a palindrome.

Beginner Login Open →
C49 · C Programming

Count Vowels & Consonants

Count vowels and consonants in a string.

Beginner Login Open →
C50 · C Programming

Largest Element in Array

Find the largest element in an array.

Beginner Login Open →
C51 · C Programming

Smallest Element in Array

Find the smallest element in an array.

Beginner Login Open →
C52 · C Programming

Sum & Average of Array

Find the sum and average of array elements.

Beginner Login Open →
C53 · C Programming

Second Largest in Array

Find the second largest element in an array.

Intermediate Login Open →
C54 · C Programming

Linear Search in Array

Search an array for a key using linear search.

Beginner Login Open →
C55 · C Programming

Bubble Sort Array

Sort an array using bubble sort.

Intermediate Login Open →
C56 · C Programming

Count Words in a Sentence

Count the number of words in a sentence.

Beginner Login Open →
C57 · C Programming

Fibonacci using Recursion

Compute Fibonacci using recursion.

Intermediate Login Open →
C58 · C Programming

Tower of Hanoi

Solve Tower of Hanoi and list the moves.

Advanced Login Open →
C59 · C Programming

Matrix Addition

Add two matrices element by element.

Intermediate Login Open →
C60 · C Programming

Matrix Multiplication

Multiply two matrices using row x column.

Advanced Login Open →
CZ01 · C Programming

C Pointer to Array

Pointer to Array in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ02 · C Programming

C Array of Pointers

Array of Pointers in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ03 · C Programming

C Pointer to Function

Pointer to Function in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ04 · C Programming

C Double Pointer

Double Pointer in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ05 · C Programming

C malloc

malloc in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ06 · C Programming

C calloc

calloc in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ07 · C Programming

C realloc

realloc in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ08 · C Programming

C free and Memory Leaks

free and Memory Leaks in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ09 · C Programming

C Pointer to Structure

Pointer to Structure in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ10 · C Programming

C void Pointer

void Pointer in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ11 · C Programming

C Structure Basics

Structure Basics in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ12 · C Programming

C Nested Structure

Nested Structure in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ13 · C Programming

C Array of Structures

Array of Structures in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ14 · C Programming

C typedef

typedef in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ15 · C Programming

C union

union in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ16 · C Programming

C enum

enum in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ17 · C Programming

C Bit Fields

Bit Fields in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ18 · C Programming

C Structure Padding

Structure Padding in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ19 · C Programming

C strlen

strlen in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ20 · C Programming

C strcpy

strcpy in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ21 · C Programming

C strcat

strcat in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ22 · C Programming

C strcmp

strcmp in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ23 · C Programming

C strrev

strrev in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ24 · C Programming

C atoi

atoi in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ25 · C Programming

C strtok

strtok in C — interactive simulator with code, output and how-to-run.

Beginner Login Open →
CZ26 · C Programming

C fopen and fclose

fopen and fclose in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ27 · C Programming

C fprintf and fscanf

fprintf and fscanf in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ28 · C Programming

C fgetc and fputc

fgetc and fputc in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ29 · C Programming

C fgets and fputs

fgets and fputs in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ30 · C Programming

C File Modes

File Modes in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ31 · C Programming

C define Macro

define Macro in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ32 · C Programming

C include Directive

include Directive in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ33 · C Programming

C Conditional Compilation

Conditional Compilation in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ34 · C Programming

C Macro with Arguments

Macro with Arguments in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ35 · C Programming

C Storage Classes

Storage Classes in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ36 · C Programming

C const and volatile

const and volatile in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ37 · C Programming

C Command-line Arguments

Command-line Arguments in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ38 · C Programming

C Comma Operator

Comma Operator in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →
CZ39 · C Programming

C goto Statement

goto Statement in C — interactive simulator with code, output and how-to-run.

Intermediate Login Open →