C / ANSI-C examples (example source code) Organized by topic

C / ANSI-C
C++
PHP
C / ANSI-C Home  Screenshots 
 



 
Data Type
Pointer
String
Data Structure Algorithm
Data Type
Screenshots 
Array Char  ( 12 ) Array Double  ( 2 ) Array Float  ( 1 ) Array Int  ( 15 ) Array String  ( 1 ) Array Two Dimension  ( 12 )
Binary Display  ( 1 ) Bit AND  ( 1 ) Bit OR  ( 1 ) Bit Reverse  ( 1 ) Bit Shift  ( 4 ) Bitwise XOR  ( 3 )
Char Validation  ( 14 ) Char  ( 12 ) Constant  ( 4 ) Control Character  ( 7 ) Decimal  ( 1 ) Define New Type  ( 1 )
Double  ( 7 ) Enum  ( 5 ) Float  ( 14 ) Hex  ( 4 ) Int Convert  ( 4 ) Int  ( 19 )
Long  ( 7 ) Register  ( 2 ) Short  ( 1 ) Static  ( 5 ) Union  ( 3 )
Pointer
 
Pointer Array  ( 6 ) Pointer Char  ( 7 ) Pointer Double  ( 3 ) Pointer Int  ( 12 ) Pointer Long  ( 1 ) Pointer Pointer  ( 2 )
Pointer String  ( 2 )
String
 
String Append  ( 9 ) String Case  ( 2 ) String Compare  ( 6 ) String Convert  ( 16 ) String Copy  ( 6 ) String General  ( 20 )
String Length  ( 11 ) String Search  ( 15 ) String Split  ( 4 )
Data Structure Algorithm
 
Bubble Sort  ( 3 ) Insertion Sort  ( 1 ) Link List  ( 2 ) Queue  ( 2 ) Quick sort  ( 8 ) Search  ( 2 )
Selection Sort  ( 1 ) Shaker Sort  ( 1 ) Shell Sort  ( 1 ) Stack  ( 2 ) Tree  ( 4 )
 
Console
Language Basics
Development
Console
 
Console Input Validation  ( 1 ) Console Menu  ( 1 ) Console Output Char  ( 4 ) Console Output float  ( 1 ) Console Output Int  ( 5 ) Console Output String  ( 8 )
Console Output  ( 2 ) Console Read Any  ( 2 ) Console Read Char  ( 7 ) Console Read Decimal  ( 1 ) Console Read Int  ( 6 ) Console Read String  ( 6 )
Console Read Validation  ( 8 ) Formatted Output Float  ( 5 ) Formatted Output Hex  ( 1 ) Formatted Output Int  ( 6 ) Formatted Output String  ( 1 )
Printf  ( 6 ) Scanf  ( 5 )
Language Basics
Screenshots 
Comments  ( 2 ) Do While  ( 7 ) Extern  ( 1 ) For Break  ( 5 ) For Continue  ( 2 ) For  ( 31 )
Goto  ( 1 ) If  ( 20 ) Main  ( 7 ) Operator General  ( 14 ) Operator Rank  ( 1 ) Operator Relation  ( 3 )
Operator Self Increase  ( 3 ) Operator Ternary  ( 7 ) Statement  ( 1 ) Switch  ( 11 ) Variable Scope  ( 14 ) Variable  ( 5 )
While  ( 4 )
Development
 
Assert  ( 1 ) Bar Chart  ( 1 ) Beep  ( 2 ) Command Line Parameters  ( 10 ) Compile Info  ( 1 ) Debug  ( 3 )
Environment  ( 1 ) error  ( 6 ) Exit Abort  ( 4 ) Locale  ( 2 ) Print  ( 1 ) System Command  ( 2 )
Table  ( 1 ) Time Date  ( 21 ) Timer  ( 2 )
 
Structure
Memory
Math
Structure
 
Struct Define  ( 8 ) Struct Size  ( 2 ) Structure Array  ( 4 ) Structure Parameters  ( 1 ) Structure Serialization  ( 2 )
Memory
 
Memory Allocation  ( 10 ) Memory Compare  ( 2 ) Memory Copy  ( 2 ) Memory Free  ( 1 ) Memory Jump  ( 1 ) Memory Move  ( 2 )
Memory Save  ( 1 ) Memory Search  ( 1 ) Memory Set  ( 2 )
Math
Screenshots 
Absolute Value  ( 4 ) Cos ACos  ( 6 ) Divide  ( 5 ) Exp  ( 4 ) Log  ( 4 ) Mod  ( 5 )
Power  ( 3 ) Random  ( 10 ) Round  ( 2 ) Sin ASin  ( 8 ) Square Root  ( 2 ) Tan ATan  ( 8 )
 
File
Macro Preprocessor
File
 
Binary File  ( 1 ) File Close  ( 1 ) File Compare  ( 1 ) File Content Search  ( 5 ) File Copy  ( 3 ) File Delete  ( 4 )
File End  ( 4 ) File Error  ( 1 ) File fprintf fscanf  ( 2 ) File fwrite fread  ( 1 ) File Open  ( 6 ) File Pointer  ( 4 )
File Read  ( 16 ) File Rename  ( 2 ) File Temp  ( 3 ) File Write  ( 20 ) Stream Buffer  ( 1 )
Macro Preprocessor
 
if def  ( 4 ) ifndef  ( 1 ) Inline  ( 1 ) Line  ( 1 ) Macro Basic  ( 3 ) Macro Constant  ( 10 )
Macro Function  ( 10 ) Macro String  ( 3 ) Preprocessor IF  ( 3 ) Preprocessor LINE  ( 1 ) Preprocessor  ( 1 )
 
Function
Small Application
Function
 
Function Parameters  ( 21 ) Function Pointer  ( 10 ) Function Recursive  ( 7 ) Function  ( 31 )
Small Application
 
Calculator  ( 2 )