Category Archives: C Programs

Useful & common C programs for learning

Write a c program implementing linked lists

Below program illustrates operations as insert, delete, search & display with menu choice operations in linked list. #include <stdio.h> #include Read More...
Posted in C Programs | Tagged | Comments Off on Write a c program implementing linked lists

Write a program of server, multiple client chat application using linked lists, multithreading

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*SERVER CODE-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- /* to compile me in Linux, type: gcc -o server t1.c -lpthread */ /* t1.c - code for Read More...
Posted in C Programs | Comments Off on Write a program of server, multiple client chat application using linked lists, multithreading

C & Unix must read books

C Programming Language (2nd Edition), by Brian W. Kernighan and Dennis M. Ritchie – Dennis M. Ritchie is the father Read More...
Posted in C Programming, C Programs | Comments Off on C & Unix must read books

Adding numbers in c using function

Adding numbers in c using function   We have used long data type as it can handle large numbers. #include<stdio.h> long Read More...
Posted in C Programs | Comments Off on Adding numbers in c using function

C Program to Print Without Semi colon

C Program to Print Without Semi colon 1. #include “conio.h” 2. #include “stdio.h” 3. void main() 4. { 5. if(printf(“hello”)&&getch()) Read More...
Posted in C Programs | Comments Off on C Program to Print Without Semi colon

10 * 10 Multiplication Table C code.

10*10 Multiplication Table C code.   1.  #include<stdio.h> 2.  #include<conio.h> 3.  main() 4.  { 5.  int row,column; 6.  clrscr(); 7.  puts(“tttMULTIPLICATION Read More...
Posted in C Programs | Comments Off on 10 * 10 Multiplication Table C code.

Program to swap 2 variables with out using of 3rd variable

program to swap 2 variables with out using of 3rd variable. 1.  #include<stdio.h> 2.  void main() 3.  { 4.   int  Read More...
Posted in C Programs | Tagged | Comments Off on Program to swap 2 variables with out using of 3rd variable

program to count the number of 0’s and 1’s in a binary number

program to count the number of 0’s and 1’s in a binary number.    #include<stdio.h>  #include<conio.h> void main() { int n,x,a,b,s; Read More...
Posted in C Programs | Tagged | Comments Off on program to count the number of 0’s and 1’s in a binary number

Write a program to find factorial of the given number

Write a program to find factorial of the given number. Recursion: A function is called ‘recursive’ if a statement within Read More...
Posted in C Programs | Tagged | Comments Off on Write a program to find factorial of the given number

some number pattern C programs

Write a C program to print the following pattern: 1 0 1 1 0 1 0 1 0 1 1 Read More...
Posted in C Programs | Tagged | Comments Off on some number pattern C programs