An open API service indexing awesome lists of open source software.

https://github.com/pconst/basic_c_examples

Short console apps demonstrating basic С language concepts
https://github.com/pconst/basic_c_examples

Last synced: about 2 months ago
JSON representation

Short console apps demonstrating basic С language concepts

Awesome Lists containing this project

README

        

# basic_c_examples
### Short console apps demonstrating basic С language concepts

**array 1.cpp** - poiner access to array elements
**array 2.cpp** - dynamic memory allocation
**array 3.cpp** - ways to pass (multi-dimentional) array into function

**ArrayRev.cpp** - shows that array allocaton in C and Visual Basic are different at low-level
**ArrayRev VB (directory)** - the same

**checkzero.cpp** - on importance to initialize vars

**class 1.cpp** - calling constructors
**class 2.cpp** - calling copy constructors
**class 3.cpp** - static members and friend functions

**CMultiArr.cpp**
**New_multiArr.cpp**
**Dinamic_multiarr.cpp** - creating arbitrary multi-dimentional dinamic arrays

**Division.cpp** - as simple as it sounds
**empty.cpp** - i can`t understand this program (
**file.cpp** - stdio file access

**for sequence.cpp** - oneliner prog!
**for_style.cpp** - for decoration example

**functions 1.cpp** - passing arguments by pointer and by reference
**functions 2.cpp** - juggling with referencing-dereferencing
**functions 3.cpp** - using global vars inside a function

**incrementer.cpp** - written just to estimate how many elementary operations can i afford to get, say, 1 second delay
**inc_dec_comparation.cpp** - the same

**IntOrExtVarDefs.cpp** - declare vars outside of a cycle, compiler is a dumb thing

**matrix.cpp** - matrix arithmetic

**multiply 1.cpp** - factorization example
**multiply 2.cpp** - another factorization example

**NumberGuesser.cpp** - magical prog that guesses the number you propose

**permutations 1.cpp** - prints out P(k,n)
**permutations 2.cpp** - another try to print P(k,n)

**parentheses 1.cpp** - prints out all words of length (2*N)>0 that represent valid nested curly braces "(" and ")" **(That was fun!)**
**parentheses.cpp** - the same

**PasSeries.cpp** - prints out Pascal`s triangular array members, see [wiki](http://en.wikipedia.org/wiki/Pascal%27s_triangle)

**pointer 0.cpp**
**pointer 1.cpp**
**pointer 1_1.cpp**
**pointer 2.cpp** - void pointers
**pointer 3.cpp** - pointers on const
**pointer 4.cpp** - constant pointers
**pointer 5.cpp** - pointer arithmetic
**pointer 6.cpp**
**pointer 7.cpp** - pointers and references are the same damn thing!

**polynom.cpp** - lets solve quadratic equation

**prime integers.cpp** - prints out primes

**rpn.cpp** - my guess is that the prog parses math expressions
**sizeof.cpp** - as simple as it sounds
**sqr comparation.cpp** - pow function testing
**string.cpp** - some string operations

**type cast 1.cpp** - unexplicit type casting
**type cast 2.cpp** - explicit type casting

**union.cpp** - shows what is a unit at low-level