In the previous post we introduced arrays to you; and learned that arrays make our tasks a lot easier when we are dealing with a number of records. Arrays are not just that, there is a lot more on this topic as we shall see here; how to deal with …
10. Introduction to Arrays.
We learned about variables in our previous posts, we saw that they are essential part of any programming language, before we move further I would like you to think over, what if we want to store records of hundred entities, for e.g. we want to store the names of hundred …
9. Introduction to Pointers
We learned about variables that they are used as identifiers to memory locations so that we need not to remember the difficult memory addresses, but is there a way to store those memory addresses in case we need them? Yes! Pointers are a powerful feature of C language which gives …
8. Code Re usability, Introduction to functions
Code reusability has always been an interesting topic, reusing code to avoid repetition is a very good technique used by programmers to increase the readability of code. Re usability reduces, the implementation time as well as the number of bugs in your code; causing the testing phase of your application …
7. The looping construct
Loops are vital part of programming techniques, many people at first don’t understand the sole purpose of looping, and teachers must give solid examples and proper applications of loops to make beginners understand the real power of loops. Here we will discuss and develop a program which will demonstrate how …
6. The Decision Control Structure
When you develop a computer program decisions have to be made on the input given by the user. For example you are developing a computer game so definitely you have to determine what happens when user presses the right or left arrow keys or what happens when one presses a …
5. Getting a bit techie, Dealing with operators.
To work with efficient programming techniques we need to know some basic operators, a list exist categorizing the operators in almost every programming language. Some of the basic operators are as follows Arithmetic operators Comparison operators/Relational operators Logical operators Compound assignment operators Arithmetic Operators Operator name Syntax Definition Basic assignment …
4. A bit further, Recieving input from users
Making software and not allowing user to interact with it, seems awful; we have learnt how to display data on our screens lets study how we can allow our user to input data into the computer. Here we will give a look on how we take input from the user …
3. Getting on the track, Variables and Constants
Here we will give a look to some data types and their uses, how data is stored and how you can access it back. When you perform operations in computer, you need to store the results somewhere, these places are known as memory locations. Each memory location has its own …
2. Getting your hands dirty, Your First Program.
We learned a bit about programming in C in our previous post, lets get started with some coding, here we shall learn how to print something on our screens. Consider the following code. </p> <p>#include <stdio.h><br /> #include <conio.h></p> <p>void main()<br /> {<br /> printf("HELLO WORLD");<br /> getch();<br /> }</p> …
Continue Reading →