This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies Find out more here
Category: C Programming
Squaring a Value
Could the C language use a square() function or operator? Continue reading →
What’s Next, Keyboard?
Sometimes a program needs to check to see whether a key has been pressed without reading that key. Continue reading →
C Program implementing Lagrange Interpolation Form...
In numerical analysis, Lagrange polynomials are used for polynomial interpolation. For a given set of distinct points Xi and numbe...
Bisection Method – Algorithm, Flowchart and Code i...
The bisection method is one of the simplest and most reliable of iterative methods for the solution of nonlinear equations. This m...
Top 30 Best IDEs and Compilers for C/C++
If you’re interested in learning to program in C/C++ you’ll find this list of C/C++ Compilers handy. Here I have list of Top 30 Be...
Nested Structure in C Programming with example
In this tutorial you’ll be learning about struct types or structure and an example of Nested Structure in C Programming. In C prog...
How to remove Character from String in C using Poi...
Our mission is to learn how to remove character from string in C using Pointer. Let me think how, so we need to write a function t...
Positive Negative Positive Negative
Sometimes in math, things happen like this: +1 -1 +1 -1 +1 -1 Continue reading →
A Nifty Little Test
Evaluating the result of a comparison. Continue reading →
Positive Negative Positive Negative – Solution
This month’s Exercise presents what I often refer to as a code “toggle.” Many paths lead to a solution. Because of my interest in ...
Peering into the Environment
The environment lists system variables and values your program can access. Continue reading →
Creating Your Own Environment Variables
A program can add a variable to the environment — and remove it as well. Continue reading →
Fun with switch case, Part I
The switch-case construction has some interesting quirks. Continue reading →
Calculating the Subfactorial
Also known as "derangement." Have fun with that. Continue reading →
Fun with switch case, Part II
The default condition in a switch-case structure is optional, but that's not its only quality. Continue reading →
Calculating the Subfactorial – Solution
Do you feel adequately deranged working this month’s Exercise? I’m more of a math fanboy than an expert, yet I enjoyed the process...
The alloca() Function
Here's a function you can use when you need to forget to free memory on purpose. Continue reading →