C Programming Tutorials

C Programming Tutorials And Articles
  Title / Author Replies
Views
Switch Case Statements are special type of Conditional Statements (Selection Control Mechanism) , Basically they are used as a alternative for the long if statements used to compare integral values , By integral values we mean the values that can be expressed as an integer eg :- Characters ,...
2
7,584
This time we checked Apache HTTP Server with PVS-Studio. As we had expected, we found errors there. The errors are few. We expected this either. Other developers come across this situation too while testing PVS-Studio on their projects. Unfortunately, the first conclusion you would like to draw...
0
2,781
Break and Continue are two special kind of statements used in some programming languages including C , they are used in some special conditions when the programmer needs an early exit from the loop or continuation with the next iteration. Break The Break statement is used to terminate any...
0
2,857
This is the third article where I will tell you about a couple of new programming methods that can help you make your code simpler and safer. You may read the previous two posts here and here . This time we will take samples from the Qt project. Introduction It was not accidentally that I...
2
3,849
For Loops ‘For loops’ are more concise and special kind of loops that are used to execute statements repeatedly in some programming languages including C. The For loop structure is quite different from while loops as well as do while loop structures which we had a look in previous articles. ...
0
1,288
Do while loops Do while loops are special kind of loops that are used to execute statements repeatedly in some programming languages including C. The do while loop is quite similar to the while loop but the main special thing about Do While loops are that they evaluate conditions at the bottom...
2
3,547
The while loop is a statement used in some programming languages (including C) to execute code repeatedly, this allows a programmer to execute a set of instruction multiple times until a condition is met. It is one of the simplest looping structure in C and basically follows the following...
2
1,542
Integers is a fundamental data type in a C program, They are used to represent a finite subset of mathematical integers, C Provides us with a suite of functions, and quite a lot of modifiers for manipulating these integers , but if these functions and modifiers are not used properly and carefully...
3
7,031
This article is a continuation of my previous article on conditions in C. In the previous article we talked about conditions in C and some if – else statements now in this article we’ll be focusing o how to use these if-else statement in a C program. So what’s the waiting then let’s get started....
0
1,353
Conditional Statements (also called Conditions) are features of a programming language , Which allows it to perform actions depending upon some conditions provided by the programmer , This provides a “ DECIDING” functionality to a computer program and allows for flexible and easy code development....
0
1,398
What are format strings Format strings are strings that are used to render and arbitrary number of varied datatype parameters into a string when given as a input to string formatting functions like printf, sprint etc. Understanding 'printf' 'printf' is a standard format string function in...
0
2,343
Note: This article is a continuation to my previous article on Variables in C , I suggest a glance over it before proceeding . In that article I talked about some C data types, Different types of keywords to declare some variables constants etc. In this tutorial we’ll be know why actually we...
0
1,126
Data types are basically used to store different types of data that can be easily accessed by the program. C provides us with data-types giving us immense functionality to store different types of data in a C program . like : characters , integers , decimals , floats etc. Variables, Constants...
0
1,359
Processes are the primitive units for alocation of system resources...Each process have their own address space and usually one thread of control. The process which makes another process is called the parent and the process which it makes is called a child process..As we know every process have its...
14
11,028
The article explains why hashing have o(1) complexity. This article will clear your doubt that whay hashing has 0(1) time complexity but will not take you deeper . There are certain factors which can affect the time complexity like collision and performance of hashing depends on hashing algorithm....
3
7,690
EIP ( Extended Instruction Pointer ) is a register that points to the next instruction...It simply points to the address in which that instruction is placed...So if we overwrite this we can change the direction flow of the program and make it do what we want.... In other words if we overwrite...
2
11,111
Note : The following source will only work with non-chunked encoding servers...The servers which have enabled the encoding set to chunked will not properly work with this source... And I assume basic knowledge of SOCKETS UNIX API and C language as prerequisites... Source #include<stdio.h>...
5
9,434
Generally a question is asked that if you have given n bits then print out all the possible binary numbers of n bit and so I will try to explain how to get that done. Please don't Copy Paste. Understand The logic because it is useful in other problems as well for eg if n=1 then you can have 0...
2
9,932
Refer to the recent articles on Understanding File Handling Functions in C & Understanding Advance File Handling Functions in C Opening A File Before we can write information to a file on a disk or read it, we must open the file. Opening a file establishes a link between the program and the...
14
327,920
Stack is a Last in First out(LIFO) abstract data structure...Stack is used as the main data structure for processing and data management on most of the OS architectures...like intel x86 etc etc.. Stack based Overflows It happens when to much data is passed on the call stack and results in...
4
5,027