C Programming
Program flow, variables, loops, arrays, pointers
99 simulators found.
C Program Structure Flow
C Program Structure Flow — interactive visual simulator with step-by-step explanation and exam answer format.
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.
C Operators Dry Run
C Operators Dry Run — interactive visual simulator with step-by-step explanation and exam answer format.
C if else Flow
C if else Flow — interactive visual simulator with step-by-step explanation and exam answer format.
C for Loop Dry Run
C for Loop Dry Run — interactive visual simulator with step-by-step explanation and exam answer format.
C while Loop Dry Run
C while Loop Dry Run — interactive visual simulator with step-by-step explanation and exam answer format.
C Array Memory View
C Array Memory View — interactive visual simulator with step-by-step explanation and exam answer format.
C String Character View
C String Character View — interactive visual simulator with step-by-step explanation and exam answer format.
C Function Call Stack
C Function Call Stack — interactive visual simulator with step-by-step explanation and exam answer format.
C Pointer Address Diagram
C Pointer Address Diagram — interactive visual simulator with step-by-step explanation and exam answer format.
Sum of N Natural Numbers
Add the first N natural numbers using a for loop.
Factorial of a Number
Compute N! by multiplying 1 to N in a loop.
Fibonacci Series
Print the first N terms of the Fibonacci series.
Reverse a Number
Reverse the digits of a number using a loop.
Palindrome Number Check
Check if a number reads the same forwards and backwards.
Count Digits
Count how many digits a number has.
Sum of Digits
Add all the digits of a number.
Prime Number Check
Check whether a number is prime.
Prime Numbers in a Range
Print all prime numbers between two values.
Armstrong Number
Check if a number equals the sum of its digits powered by digit count.
Perfect Number
Check if the sum of proper divisors equals the number.
Multiplication Table
Print the multiplication table of a number.
Power of a Number
Compute a raised to the power b using a loop.
GCD (HCF) of Two Numbers
Find the GCD using the Euclidean algorithm.
LCM of Two Numbers
Find the LCM using LCM = a*b/GCD.
Sum of Even Numbers
Sum of even numbers from 1 to N.
Sum of Odd Numbers
Sum of odd numbers from 1 to N.
Largest Digit in a Number
Find the biggest digit in a number.
Strong Number
Check if the sum of digit factorials equals the number.
Decimal to Binary
Convert a decimal number to binary.
Pattern: Right Triangle Stars
Print a right-angled triangle of stars.
Pattern: Inverted Right Triangle
Print an inverted right-angled triangle of stars.
Pattern: Pyramid Stars
Print a centered pyramid of stars.
Pattern: Inverted Pyramid
Print an inverted pyramid of stars.
Pattern: Number Triangle
Print a number triangle (1, 12, 123 ...).
Pattern: Floyd's Triangle
Print Floyd's triangle of continuous numbers.
Pattern: Pascal's Triangle
Print Pascal's triangle.
Pattern: Diamond
Print a diamond pattern of stars.
Pattern: Hollow Rectangle
Print a hollow rectangle of stars.
Pattern: Repeated Number Rows
Print 1, 22, 333 ... pattern.
Pattern: Character Triangle
Print A, AB, ABC ... pattern.
Pattern: Inverted Number Triangle
Print 12345, 1234 ... pattern.
Pattern: Binary Triangle
Print a 0/1 binary triangle.
Pattern: Right-Aligned Triangle
Print a right-aligned star triangle.
Pattern: Butterfly
Print a butterfly pattern of stars.
Swap Two Numbers
Swap two numbers with and without a temp variable.
Reverse a String
Reverse a string character by character.
String Palindrome Check
Check if a string is a palindrome.
Count Vowels & Consonants
Count vowels and consonants in a string.
Largest Element in Array
Find the largest element in an array.
Smallest Element in Array
Find the smallest element in an array.
Sum & Average of Array
Find the sum and average of array elements.
Second Largest in Array
Find the second largest element in an array.
Linear Search in Array
Search an array for a key using linear search.
Bubble Sort Array
Sort an array using bubble sort.
Count Words in a Sentence
Count the number of words in a sentence.
Fibonacci using Recursion
Compute Fibonacci using recursion.
Tower of Hanoi
Solve Tower of Hanoi and list the moves.
Matrix Addition
Add two matrices element by element.
Matrix Multiplication
Multiply two matrices using row x column.
C Pointer to Array
Pointer to Array in C — interactive simulator with code, output and how-to-run.
C Array of Pointers
Array of Pointers in C — interactive simulator with code, output and how-to-run.
C Pointer to Function
Pointer to Function in C — interactive simulator with code, output and how-to-run.
C Double Pointer
Double Pointer in C — interactive simulator with code, output and how-to-run.
C malloc
malloc in C — interactive simulator with code, output and how-to-run.
C calloc
calloc in C — interactive simulator with code, output and how-to-run.
C realloc
realloc in C — interactive simulator with code, output and how-to-run.
C free and Memory Leaks
free and Memory Leaks in C — interactive simulator with code, output and how-to-run.
C Pointer to Structure
Pointer to Structure in C — interactive simulator with code, output and how-to-run.
C void Pointer
void Pointer in C — interactive simulator with code, output and how-to-run.
C Structure Basics
Structure Basics in C — interactive simulator with code, output and how-to-run.
C Nested Structure
Nested Structure in C — interactive simulator with code, output and how-to-run.
C Array of Structures
Array of Structures in C — interactive simulator with code, output and how-to-run.
C typedef
typedef in C — interactive simulator with code, output and how-to-run.
C union
union in C — interactive simulator with code, output and how-to-run.
C enum
enum in C — interactive simulator with code, output and how-to-run.
C Bit Fields
Bit Fields in C — interactive simulator with code, output and how-to-run.
C Structure Padding
Structure Padding in C — interactive simulator with code, output and how-to-run.
C strlen
strlen in C — interactive simulator with code, output and how-to-run.
C strcpy
strcpy in C — interactive simulator with code, output and how-to-run.
C strcat
strcat in C — interactive simulator with code, output and how-to-run.
C strcmp
strcmp in C — interactive simulator with code, output and how-to-run.
C strrev
strrev in C — interactive simulator with code, output and how-to-run.
C atoi
atoi in C — interactive simulator with code, output and how-to-run.
C strtok
strtok in C — interactive simulator with code, output and how-to-run.
C fopen and fclose
fopen and fclose in C — interactive simulator with code, output and how-to-run.
C fprintf and fscanf
fprintf and fscanf in C — interactive simulator with code, output and how-to-run.
C fgetc and fputc
fgetc and fputc in C — interactive simulator with code, output and how-to-run.
C fgets and fputs
fgets and fputs in C — interactive simulator with code, output and how-to-run.
C File Modes
File Modes in C — interactive simulator with code, output and how-to-run.
C define Macro
define Macro in C — interactive simulator with code, output and how-to-run.
C include Directive
include Directive in C — interactive simulator with code, output and how-to-run.
C Conditional Compilation
Conditional Compilation in C — interactive simulator with code, output and how-to-run.
C Macro with Arguments
Macro with Arguments in C — interactive simulator with code, output and how-to-run.
C Storage Classes
Storage Classes in C — interactive simulator with code, output and how-to-run.
C const and volatile
const and volatile in C — interactive simulator with code, output and how-to-run.
C Command-line Arguments
Command-line Arguments in C — interactive simulator with code, output and how-to-run.
C Comma Operator
Comma Operator in C — interactive simulator with code, output and how-to-run.
C goto Statement
goto Statement in C — interactive simulator with code, output and how-to-run.