BEGINNERS AND LAB ASSIGNMENTS - C Codes

Hello World using Pointer

Description This a simple code show how to make Hello World application in C with and without using pointers. Source Code /* Simple Version......... */ #include int main() { printf( ...

12 Comments. 3166 views since Jul 29, 2008

Parity Generator and Checker

Description parity Source Code PARITY GENERATOR :- #include<stdio.h> int main() { int i,count=0,a[10]; printf("enter the seven bit no. 0and1 "); ...

0 Comments. 1151 views since Sep 6, 2010

ASCII Codes

Description ASCII code...in keyboard Source Code #include<stdio.h> #include<conio.h> void main() { char ch; clrscr(); printf("Enter Any CHARACTER="); scanf("%c",&ch); p ...

0 Comments. 1133 views since Aug 22, 2008

LCM and GCD Calculator

Description This is a program to calculate LCM and GCD of given numbers. Source Code #include<stdio.h> void main() { int a[20],n,i,j,c,max,min; unsigned long prod; clrscr(); printf(& ...

1 Comments. 1014 views since Sep 4, 2008

Factorial

Description To find factorial of a number Source Code #include<stdio.h> int factorial(int x); main() { int n,i; printf("enter the number "); scanf("%d",&n); i=factorial(n); p ...

1 Comments. 979 views since Mar 3, 2009

Leap year Finder

Description This code finds out whether a given year is Leap year or not Source Code #include <stdio.h> #include <conio.h> void main() { int year,leap; clrscr(); printf("enter the y ...

0 Comments. 938 views since Apr 6, 2009

Pyramid Generator

Description This code will print the pyramid upto the range given by you. Source Code #include<stdio.h> #include<conio.h> void main() { int i,j,k,s,n; printf("ENTER THE NO OF ROWS\t& ...

0 Comments. 886 views since Apr 4, 2009

Double Pyramid

Description Program to print a Double Pyramid. Source Code #include<stdio.h> #include<conio.h> void main(void) { int i,j,k,l,b,n; clrscr(); printf("Enter the value of N: ...

0 Comments. 877 views since Sep 4, 2008

Structure in C Language

Description structure:- how to define and manage the group of item. use and implementation of the structure.. in c language.. Source Code # include<stdio.h> /* Structure declaration for address ...

0 Comments. 582 views since Jun 23, 2011