C Programming Tutorials

C Programming Tutorials And Articles
  Title / Author Reverse Sort Order Replies
Views
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
19,873
To check whether entered number is armstrong number or not. #include<stdio.h> #include<conio.h> #include<math.h> main() { int n,sum=0,rem=0,cube=0,n1,i; clrscr(); printf("enter a number");
3
20,668
The C Progrmming Language Standard In 1983, the American National Standards Institute (ANSI) commissioned a committee, X3J11, to standardize the C language. After a long, arduous process, including several widespread public reviews, the committee's work was finally ratified as ANS X3.159-1989...
1
22,373
WHAT IS A UNION A union, is a collection of variables of different types, just like a structure. However, with unions, you can only store information in one field at any one time. You can picture a union as like a chunk of memory that is used to store variables of different types. Once a new...
12
201,463
How to make your program to be fast. 1. Use Pre Increment or Pre Decrement in place of Post Increment or Post Decrement operator. i.e. use ++i or --i in place of i++ or i--. Because ++i operator take increment and save it i.e. One CPU Instruction is required for it. and in case of i++...
14
4,146
Program to find max(x,y) or Min(x,y) without using any relational and logical operator. int maximum(int x, int y) { int fNum,temp,num; num = x; num = y; temp=fNum; return( temp);
4
2,944
Mostly people are using this algorithm to compute matrix multiplication: #define n 1000 int main() { int a,b,c; c=0; for( i=0;i<n;++i) {
8
27,603
I worked for a long time for this article. This program is tested on Sun-Solaris system using gcc compiler. In market, there are a lot of tools for detecting the memory leaks. Here I made a program which has to include in your source file and it will tell the desired informations to find where...
42
24,831
Article is originally written by Zeeshan Amjad Introduction Here I am going to give a detail about Recursion in C++. Definition: Recursion is the process where a function is called itself but stack frame will be out of limit because function call will be infinite times. So a termination...
18
8,323
Introduction Here I am going to give a simple example of addition, substraction, multiplication etc to check overflow/underflow so that we can minimize buggs/defects in our code The code In your project/product or any place, If you have some operation like Addition, substraction...
4
4,255
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,223
Code for Decimal To Binary Conversion #include<stdio.h> void main() { int i,n1,t,w,a,i1=0; float n,f2; clrscr(); printf("PROGRAM FOR DECIMAL TO BINARY CONVERSION\n");
5
75,699
Code for Integer Into Words #include<stdio.h> void main() { long int n,t; char a={" ","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten"}; char b={" "," ","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"}; char c={"...
1
2,370
I recently faced a problem regarding these 2 Escape Sequences. So, I thought I should share the difference between these two to clarify to all who may hay have confusion like me. Thanks to Shabbir too...... The Difference There are a few characters which can indicate a new line. The usual...
6
34,809
Dev-Cpp is an application which is used to code and run programs in C/C++. It has its variations but none of them come with a pre-installed graphics library. So if you are switching from some primitive editor like TurboC to Dev-Cpp (which follows ANSI specifications correctly) and try to write the...
9
7,964
Networking is all about transmitting messages from one node to another. The simplest example can be to transmit "Hello World" from one computer to another. Socket programming in C/C++ has already been covered. Today we will see how to check if the transmitted data has any errors. There are many...
1
3,763
The below code is a calculator in plain C. It does not take into account the operability of bodmas but just one operation at a time. The main thing in the source code below in the scanf which scans the input as number symbol number just as in case of normal calculator. #include<stdio.h> ...
34
126,928
The below program calculates the largest no among the no entered but it just calculates as user inputs them. This can be used with files and as you move ahead in file you can store the max and the min value in a variable when parsing the file. #include<stdio.h> int largest(int,int); void...
5
2,737
/*question number 1*/ int z,x=5,y=-10,a=4,b=2; z = x++ - --y * b / a;What number will z in the sample code above contain? Choice 1 5 Choice 2 6 Choice 3 10 Corrected by buddy by running the program Choice 4
153
389,623
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
5,904