C Tutorial

C Programming Tutorial
C Programming Tutorial

Welcome to the C Knowledge Base and Tutorial

 

C program to print digital clock with current time

#include <stdio.h> #include <time.h>   int main() {     time_t s, val = 1;     struct tm* current_time;        s = time(NULL);
Read More »

Pointers in C Programming

A pointer is a variable that stores the address of another variable. Unlike other variables that hold values of a
Read More »

Structure in C programming

Structure is a group of variables of different data types represented by a single name. Lets say we need to
Read More »

Function call by reference in C Programming

Before we discuss function call by reference, lets understand the terminologies that we will use while explaining this: Actual parameters:
Read More »

Functions in C Programming

A function is a block of statements that performs a specific task. Suppose you are building an application in C
Read More »

Strings and String functions in c

String is an array of characters. In this post, we learn how to declare strings, how to work with strings
Read More »

Two dimensional (2D) arrays in C programming

An array of arrays is known as 2D array. The two dimensional (2D) array in C programming is also known
Read More »

Arrays in C programming

An array is a group (or collection) of same data types. For example an int array holds the elements of
Read More »

goto statement in c programming

The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used,
Read More »

switch case statement in C Programming

C switch caseThe switch case statement is used when we have multiple options and we need to perform a different task for
Read More »

continue statement

C Continue StatementThe continue statement is used inside loops. When a continue statement is encountered inside a loop, control jumps to the
Read More »

do while loop in C programming

C do while loopA do while loop is similar to while loop with one exception that it executes the statements inside the body
Read More »

C – while loop in C programming

C while loopA loop is used for executing a block of statements repeatedly until a given condition returns false. In the previous
Read More »

C – for loop in C programming

C for loopA loop is used for executing a block of statements repeatedly until a given condition returns false. C For loop
Read More »

C – If..else, Nested If..else and else..if Statement

C If else flow diagramC If else statement Syntax of if else statement: If condition returns true then the statements inside the body of
Read More »

Older Entries » For any query or issue, feel free to discuss on http://discuss.eduguru.in