C Programming Tutorials

C Programming Tutorials And Articles
  Title / Author Replies
Views
Program for singly circular linked list which inserts, deletes, searches .... data in it #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> /***** Structure template *****/ struct list{
37
92,072
Introduction A command line argument is a parameter which is passed to a program at the time or instant when it is invoked or executed from the command line .This is accomplished by passing information to main() method of the program. It is the information that directly follows the program’s...
3
12,324
Introduction In computer science a search algorithm is a technique of finding a particular item among a collection of items. Searching for data is the second most common activity (after sorting data) necessary for creating many types of programs. Sequential Search In this technique we...
1
3,140
Abstract Introduction PC-Lint tool VivaMP tool Static analysis implemented in Intel C++ compiler Conclusion References Abstract
4
2,816
Abstract Introduction size_t type ptrdiff_t type Portability of size_t and ptrdiff_t Safety of ptrdiff_t and size_t types in address arithmetic Performance of code using ptrdiff_t and size_t Code refactoring with the purpose of moving to ptrdiff_t and size_t References
4
3,837
Introduction This article is about the slicing of object while sending the argument through a pass by value mechanism when using polymorphism. Background While we are using passing by address mechanism the address of the base class type as well as the derived class type are same in...
4
6,851
A Program to check whether entered matrix is symmetric or not. #include<stdio.h> #include<conio.h> main() { int a,at,k,i,j,m,n; clrscr(); printf("enter the order of matrix"); scanf("%d %d",&m,&n);
8
20,299
Linked Lists Implementation ... #include<stdio.h> #include<conio.h> #include<malloc.h> void insertafter(struct node ** ,int ,int); void insertatbeg(struct node ** ,int ); void add(struct node ** ,int); void search(struct node **,int);
10
6,059
Introduction After long day's discussion, bool was made as built-in type. Before it lot of other proposals came for bool. There were following proposals. Proposal 1: bool can be implemented by typedef typedef int bool ; It works fine but problem is that if someone overloads functions...
4
3,323
Introduction The aim of this article is to explain the upcasting. Before going through this article I expect people have some preliminary idea about inheritance mechanism. Background The term upcasting comes from the class inheritance diagram. In the class inheritance diagram we...
6
3,327
Introduction This artcile talks about Design By Contract Technique with an example to show how it can be used in an Application. Background Most application problems arise because of inappropriate handling of data obtained from external systems that could be a application user, remote...
9
5,497
Introduction This article explains what downcast are, how to make it safe, and so forth. However, before learning what downcast are, you must be familiar with polymorphism. Background Can you guess what is down-casting…yes it’s an opposite mechanism of up-casting. In upcast the...
2
15,534
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
3,088
Introduction A lot of us use TC in our colleges. Today I will share with you Two ways to have fun in lab with your teachers. ;) Background Trick I In the first way, you will create an error in any wokring code just by adding one or more numeric letter in it. There will be only one...
3
2,771
Newton Raphson Interpolation Formula implementation in C. #include <stdio.h> #include <conio.h> #define N 100 float comb(float,int); /*****************************************************************/ /***** Newton-raphson-interpolation formula implementation *****/ /***** This...
4
9,838
Implementation os some some elementary operations like insert, delete, search on doubly circular linked list. #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #define N 100 struct dclinklist {
8
33,087
Memory Segment Whenever U create a program and load it on a CPU ie executing UR program. It loads a Process Page on the virtual memory of UR system.That Process page will be mapped to UR Task Struct which will be in UR Process Control Block PCB. ...
7
7,900
Abstract Introduction The interview text References Abstract This is an interview with Dmitriy Vyukov - the author of Relacy Race Detector (RRD) tool intended for verifying parallel applications. In this article you will learn about the history of creating RRD, its basic abilities and...
0
1,829
Stack memory Let's suppose there is nothing on the stack to begin with. One of the functions either the calling function or the called function depending on the calling convention would start a stack. Lets take a very simple C / C++ program to see how things would work. int func(int i) {...
1
4,026
When a process terminates abnormally it usually tries to send a signal indicating what went wrong. C programs (and UNIX) can trap these for diagnostics. Also user specified communication can take place in this way. Signals are software generated interrupts that are sent to a process when a...
2
27,432