C Programming Tutorials

C Programming Tutorials And Articles
  Title / Author Reverse Sort Order Replies
Views
Introduction After a long hiatus, I am back. Months without programming and then finally I got some time on my hands. So I set out to code the Huffman's Data Compression Algorithm. And the result is here! :D The code is well-commented and I hav given some additional documentation. Also, I...
15
33,331
Introduction The Source code that follows is for Tetris using BGI under Turbo C/C++ DOS compiler. It is still in the preliminary stages of development and there is a long way to go. Now, this is a demo version where the user isnt supposed to 'play' the game but be a mute spectator - it just...
5
8,511
I am attaching a ZIP file that contains a Quiz Making and Participating program. You MUST donwload the ZIP and run the exe. The source code given below would not be sufficient enough. As of Right now, only the participating side is completed - Files are created for individual teams and all their...
4
4,354
Hello to one & all, I did a little bit of programming this weekend (I got myself a new Xbox 360!) .... but not satisfied with the Gaming monolith, I decided to do some game programming myself. So, I implemented that very famous game played by everyone who had access to a computer in the early 90's...
8
3,914
The other day, I just had this thought of exhausting the R.A.M. of my ailing, old P.C. in the hopes that it may trigger off a cataclysmic crash which would render it useless :happy: (so that I finally get that brand new mega-system P.C. which I so yearn! :D ) So I set out to write this program...
3
2,922
I wrote a program in C for matching patterns among 2D matrices. In brief, the program accepts a SUBSET matrix & a SUPERSET matrix as I/P from user and helps verify whether the SUBSET matrix is present within the SUPERSET matrix in a continuous manner (provisions have been made for detecting row...
3
8,422
Introduction In this i have made use of recursion to calculate x to the power n #include <stdio.h> main() {
7
30,717
This is the code I wrote in my college days and dont quote me on this if something does not go as expected. #include<stdio.h> #include<ctype.h> #include<conio.h> void main() { int c,i,letter;
8
2,780
Introduction Definition: Pointer is a variable which stores address of another variable. To understand this definition properly, let us separate it into two statements: 1. Pointer is a variable. 2. It stores address of another variable. Consider the first statement, it means that a...
8
9,435
In computer programming, a bitwise operation operates on one or two bit patterns or binary numerals at the level of their individual bits. On many computers, bitwise operations are slightly faster than addition and subtraction operations and significantly faster than multiplication and division...
2
14,351
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
315,313
Introduction On 4th August, shabbir posted this question : (at the $1 Daily contest thread) List a set of prime numbers where the sum total of the complete set is 100. So, I thought why not generate try generating *all* such sets of primes, instead of *any* such set ? And, I sat down to...
5
2,912
In this article I'm going to show you how to change value of variable during run time. There are many tools around how to do this easily, but I will focus on the way doing it programatically, specifically using C language. Tools I will use: Cheat Engine 6.0 Here is a simple code for login, I...
7
8,073
Using URLDownloadToFile function In this article I would want to show you how to download a file from internet using URLDownloadToFile function in C language. I think everybody has ever experienced the downloading a file with Internet Explorer. IE is using directly this function, but It uses...
3
4,283
The code below swaps two nodes in the linked list. The swap operation can be helpful in sorting a linked list and so its very important how to swap the nodes of linked list. Swapping in normal arrays is swap of the data but in linked list its the pointers change and so there is just change in...
7
36,953
Relocating a node in the linked list is one of major operation and I have tried to simulate one type of movement. i.e. moving forward. node* MoveForward(node *current) { int rno; /* Roll number for moving of node */ int n; /* Number of nodes...
2
9,677
Introduction I always like smilies and the ASCII characters can behave like good smileys and so I wrote a small utility to get all tha ASCII values of the characters and I can easily add them anywhere I prefer The Code int i; FILE *fp; fp = fopen("c:\\code.txt","w"); for(i=0;i<256;i++)
2
3,317
Here is the code which displays the Calendar of the month entered by the user. #include<stdio.h> #include<conio.h> #define Y 1900 /*1/1/1900 monday*/ void days(int *,int *); void display(int *, int);
5
3,236
Program prints the month without using any system related information but just making some simple calculations of days from the reference day 1/1/1900 as Monday. #include<stdio.h> #include<conio.h> #define Y 1900 /*1/1/1900 Monday*/ void days(int ,int ); void display(int , int );...
0
2,811
C Program to solves linear programming problem or LPP by "SIMPLEX" and "DUAL SIMPLEX" method. The code Simplex Method Code #include <stdio.h> #include <conio.h> #define INFINITY 999 #define N 3
11
38,639