Now that you know how C language works,I will show you how to create a function, I will tell you how to work with functions, and why are functions so important in any programming language. I will start with a very simple example, I will gather two numbers using a function. This was a very [...]
In this article we will make some exercises, to see how C works. I hope this article will help you understand better how a program should look.Let’s get to work! 1. Prime Numbers This program gives us all prime numbers down to a number that we choose. 2. Checking Prime Number In this example I [...]
Because this is something that you should really know. And because I did not tell you this in my previous tutorials, I made this quick tip to show you how to read an array in C.
In this part I will talk about arrays, control structures, iteration structures (loops) Arrays An array is a series of elements of the same type placed in contiguous memory locations. An array declaration looks like that: type name [elements];. For example if you want an array with 8 elements: int array[8] Number 1 In this [...]
Before we start you will need platform for C/C++, you can use Code::Blocks is a free IDE(Integrated development environment) for C/C++, or Visual Studio, I think they have a free version too. Next, I will give a few examples of how C look like, and I will try to describe how he works. Number 1 [...]
This time we will stop and see what C language can do. C (pronounced like the letter C) is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. Although C was designed for implementing system software,it is also widely [...]
Follow Me!