Quantcast
Channel: C
Browsing all 7 articles
Browse latest View live

C Programming Language

One of the oldest and longest running programming language is C. It was "invented" by Dennis Ritchie and Kerning ham as an alternative programming language to assembly level languages prevailing...

View Article



A Simple Example

Let us understand how a simple C program works. I am taking the first program of all C developers as my choice to explain this.#include <stdio.h> main(){  printf(“Hello World!”);}(Type in the...

View Article

C - Functions First Round

We saw in the earlier chapter about the function main() as pre-requisite for any C program. To understand C a bit more, let us call (invoke) functions from main() and understand what it means. Later,...

View Article

C - Variables First Round

Just as any other programming language, C supports various types of variables for processing of the required functionality by methods. You might recall that all operations require data to operate upon...

View Article

C - Variables Second Round

In the previous chapter, we saw that a character variable can hold 1 byte of value. How do I store a value – say “techdive” in a character variable. It is not possible in a character variable that...

View Article


C - If Else Loop

C as a procedural programming languages lets the programmer design and implement decision/logic using constructs. By this we mean the following:If... else... – blocks of code used to take choice...

View Article

C - Switch case statements

We saw the use of if...else... statements in the first round. We will see switch()...case in this chapter. Remember that it can only be used to compare values of variables and choices it can...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images