C Programming Chapter Wise


Fundamentals of C Language

IdProgram TitleView
 1  My First Program In C: Hello World!!
 2  Variable definition and actual initialization
 3  Variable definition and actual initialization, return type int
 4  A program to print one line of text
 5  Program to add two numbers
 6  Program to find sum of two numbers.
 7  Program to find subtraction of two numbers.
 8  Program to find multiplication of two numbers.
 9  Program to find division of two numbers.
 10  Program to find area and circumference of circle.
 11  Program to find the simple interest.
 12  C Program to Calculate Area of Scalene Triangle
 13  C Program to Calculate Area of Equilatral Triangle
 14  C Program to Calculate Area of Right angle Triangle
 15  C Program to Calculate Area of Circle
 16  C Program to Calculate Area of Rectangle
 17  C Program to Calculate Area of Square
 18  Program to convert temperature from degree centigrade to Fahrenheit.
 19  Program to convert temperature from celsius to fahrenheit
 20  C Program to convert temperature from fahrenheit to celsius
 21  C program to add two numbers
 22  C program to add two numbers in a single scanf function
 23  C program to find perimeter of a rectangle
 24  C program to convert centimeter to meter and kilometer
 25  C program to convert days to years weeks and days
 26  C program to convert days to years weeks and days different logic
 27  C program to calculate total average and percentage of five subjects
 28  C program to calculate Compound Interest
 29  C program to find power of a number using pow function
 30  write a program that performs an arithmetic sequence summation (arithmetic series). The program should accept the following value from the user - first term(a1), last term (an), and number of terms(n). It should then calculate the sum of terms in the series, and also the common difference (d) between terms. All user input must be validated.

Overview of C Language

IdProgram TitleView
 1  Character input : %c Example using printf and scanf function
 2  Input & Output on Console
 3  Floating data type : %f, %e(double), %lf(long double) Example using printf and scanf function
 4  String input : %s Example using printf and scanf function
 5  Some special Formatting %20s %-20s
 6  decimal integer : %d Example using printf and scanf function
 7  Integer may be octal or in hexadecimal : %i Example using printf and scanf function
 8  String printing : %s Example Program
 9  Unsigned Octal number for integer : %o Example Program
 10  Unsigned Hexadecimal for integer : %x, %X Example Program
 11  Double format specifier : %f, %e or %E Example Program
 12  Integer format specifier : %d, %i Example program
 13  Character format specifier : %c Example program
 14  Program to calculate sum of 5 subjects and find percentage.
 15  Program to find sum of two numbers
 16  Program to find area and circumference of circle.
 17  Program to calculate sum of 5 subjects and find percentage
 18  Program to show swap of two no's without using third variable.
 19  Program to show swap of two no's without using third variable
 20  Program to find gross salary
 21  Write a program that adds two integer numbers and print the input numbers and result.
 22  Write a C program that would find the length of a straight line formed by two end points, whose co-ordinates would be given as inputs.
 23  Program to find angles of a triangle
 24  C program to find area of a triangle

Data Types in C Language

IdProgram TitleView
 1  C program int datatype
 2  C program float datatype
 3  C program char datatype
 4  C program unsigned char datatype
 5  C program signed char datatype
 6  C program unsigned int datatype
 7  C program short datatype
 8  C program unsigned short datatype
 9  C program long datatype
 10  C program unsigned long datatype
 11  Storage size of int datatype
 12  Storage size of char datatype
 13  Storage size of unsigned char datatype
 14  Storage size of signed char datatype
 15  Storage size of unsigned int datatype
 16  Storage size of short datatype
 17  Storage size of unsigned short datatype
 18  Storage size of long datatype
 19  Storage size of unsigned long datatype
 20   C program double datatype
 21   C program long double datatype
 22  Storage size of float datatype
 23  Storage size of double datatype
 24  Storage size of long double datatype
 25  Storage size and range of floating point datatype
 26  Write a program to illustrate the results of type conversion between signed and unsigned long and short integer data types.
 27  Write a program to illustrate the results of type conversion from char to int data type.
 28  Write a program to illustrate the results of type conversion between float to int data type.
 29  Write a program that displays the keyed in character and the next character in the ASCII table.
 30  The packing department of a television vision set manufacturer has to prepare a requisition note listing the number of different boxes required for the different TV models that it has received from the production department. The list prepared has to be forwarded to the stores department so that the required boxes are issued to the packing department. The category and the number of boxes required for each type of TV model is given as follows:
 31  C program to perform input output of all basic data types

Variable in C Language

IdProgram TitleView
 1  Integer type variable
 2  character type variable
 3  Floating point type variable
 4  double type variable
 5  unsigned character type variable
 6  signed character type variable
 7  short type variable
 8  unsigned short type variable
 9  long type variable
 10  unsigned long type variable
 11  signed long type variable
 12  signed short type variable
 13  long double type variable
 14  variable definition and actual initialization
 15  variable definition and actual initialization using extern variable
 16  integer constant in c
 17  character constant in c
 18  floating point constant in c
 19  double constant in c
 20  unsigned char constant in c
 21  signed char constant in c
 22  short constant in c
 23  short unsigned constant in c
 24  long constant in c
 25  unsigned long constant in c
 26  signed long constant in c
 27  signed short constant in c
 28  long double constant in c

Constant in C Language

IdProgram TitleView
 1  Character constant in c program

Operators and Enums in C Language

IdProgram TitleView
 1  Write a C program to accept all character(A to Z) and check it is even or odd place using the ternary operator (A is an odd place and B is in the even place)
 2  Write a C program to accept a character and check it is even or odd place using the ternary operator (A is an odd place and B is in the even place)
 3  Example of Increment and Decrement operator in cprogramming langauage
 4  Example of Logical Operators in c programming Language
 5  Example program of Comparison Operators
 6  Arithmetic Operations example in c programming langauage
 7  +  Arithmetic Operators in C, Addition of two operands.
 8   -  Arithmetic Operators in C, Subtracts second operand from the first.
 9   *  Arithmetic Operators in C, Multiplies both operands.
 10  /  Arithmetic Operators in C, Divides numerator by de-numerator.
 11  %  Arithmetic Operators in C, Modulus Operator and remainder of after an integer division.
 12   a++  Arithmetic Operators in C, post-increment operator increases the integer value by one.
 13  a--  Arithmetic Operators in C, post-decrement operator decreases the integer value by one.
 14  ++a  Arithmetic Operators in C, pre-increment operator increases the integer value by one.
 15   --a  Arithmetic Operators in C, pre-decrement operator decreases the integer value by one.
 16  Arithmetic Operators in C, all in one
 17  ==  Relational Operators in C, Checks if the values of two operands are equal or not. If yes, then the condition becomes true othewise false.
 18  !=  Relational Operators in C, Checks if the values of two operands are equal or not. If values are not equal then the condition becomes true.
 19   <  Relational Operators in C, Checks if the value of left operand is less than the value of right operand. If yes, then the condition becomes true.
 20   >  Relational Operators in C, Checks if the value of left operand is greater than the value of right operand. If yes, then the condition becomes true.
 21   <=  Relational Operators in C, Checks if the value of left operand is less than or equal to the value of right operand. If yes, then the condition becomes true.
 22  >=   Relational Operators in C, Checks if the value of left operand is greater than or equal to the value of right operand. If yes, then the condition becomes true.
 23  Relational Operators in C, all in one
 24  &&   Logical Operators in C, Logical AND operator. If both the operands are non-zero, then the condition becomes true.
 25  ||   Logical Operators in C, Logical OR Operator. If any of the two operands is non-zero, then the condition becomes true.
 26  !   Logical Operators in C,Logical NOT Operator. It is used to reverse the logical state of its operand. If a condition is true, then Logical NOT operator will make it false.
 27  Logical Operators in C, all in one
 28  Logical Operators in C, all in one example 2
 29  &   Bitwise Operators in C, Binary AND Operator copies a bit to the result if it exists in both operands.
 30   |   Bitwise Operators in C, Binary OR Operator copies a bit if it exists in either operand.
 31   ^   Bitwise Operators in C, Binary XOR Operator copies the bit if it is set in one operand but not both.
 32   ~   Bitwise Operators in C, Binary Ones Complement Operator is unary and has the effect of 'flipping' bits.
 33   <<   Bitwise Operators in C, Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.
 34   >>   Bitwise Operators in C, Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand.
 35  Bitwise Operators in C, all in one
 36  Bitwise Operators in C, And gate Truth Table
 37  Bitwise Operators in C, OR gate Truth Table
 38  Bitwise Operators in C, XOR gate Truth Table
 39   =   Assignment Operators in C, Simple assignment operator. Assigns values from right side operands to left side operand.
 40   +=   Assignment Operators in C, Add AND assignment operator. It adds the right operand to the left operand and assign the result to the left operand.
 41   +=   Assignment Operators in C, Subtract AND assignment operator. It subtracts the right operand from the left operand and assigns the result to the left operand.
 42   *=   Assignment Operators in C, Multiply AND assignment operator. It multiplies the right operand with the left operand and assigns the result to the left operand.
 43   /=   Assignment Operators in C, Divide AND assignment operator. It divides the left operand with the right operand and assigns the result to the left operand.
 44   /=   Assignment Operators in C, Modulus AND assignment operator. It takes modulus using two operands and assigns the result to the left operand.
 45   <<=   Assignment Operators in C, Left shift AND assignment operator.
 46   >>=   Assignment Operators in C, Right shift AND assignment operator.
 47   &=   Assignment Operators in C, Bitwise AND assignment operator.
 48   ^=   Assignment Operators in C, Bitwise exclusive OR and assignment operator.
 49   ^=   Assignment Operators in C, Bitwise inclusive OR and assignment operator.
 50  Assignment Operators in C, all in one
 51   sizeof() operator, Returns the size of a variable.
 52   address of operator, Returns the address of a variable.
 53   de-referencing of operator, Pointer to a variable.
 54   sizeof() operator, Returns the size of a variable.
 55  ? :,Conditional Expression or ternary operator
 56  ? :,Conditional Expression or ternary operator, Find largest number among 3 numbers using ternary operator
 57  ? :,Conditional Expression or ternary operator, Check whether Number is Odd or Even
 58  ? :,Conditional Expression or ternary operator, same program in simple manner
 59  Operators Precedence in C
 60   *=   Assignment Operators in C, Multiply AND assignment operator. It multiplies the right operand with the left operand and assigns the result to the left operand.
 61   /=   Assignment Operators in C, Divide AND assignment operator. It divides the left operand with the right operand and assigns the result to the left operand.
 62   /=   Assignment Operators in C, Modulus AND assignment operator. It takes modulus using two operands and assigns the result to the left operand.
 63   <<=   Assignment Operators in C, Left shift AND assignment operator.
 64   >>=   Assignment Operators in C, Right shift AND assignment operator.
 65   &=   Assignment Operators in C, Bitwise AND assignment operator.
 66  ^= Assignment Operators in C, Bitwise exclusive OR and assignment operator.
 67   ^=   Assignment Operators in C, Bitwise inclusive OR and assignment operator.
 68  Assignment Operators in C, all in one
 69   sizeof() operator, Returns the size of a variable.
 70   address of operator, Returns the address of a variable.
 71   de-referencing of operator, Pointer to a variable.
 72   sizeof() operator, Returns the size of a variable.
 73  ? :,Conditional Expression or ternary operator
 74  ? :,Conditional Expression or ternary operator, Find largest number among 3 numbers using ternary operator
 75  ? :,Conditional Expression or ternary operator, Check whether Number is Odd or Even
 76  ? :,Conditional Expression or ternary operator, same program in simple manner
 77  Operators Precedence in C
 78  Program to show swap of two no's without using third variable
 79  Program to show the use of a conditional operator.
 80  Program to shift inputed data by two bits to the left.
 81  Write a program to demonstrate the results obtained by using the arithmetic operators for addition, subtraction, multiplication and division on integer data.
 82  Write a program to demonstrate the results obtained by using the arithmetic operators on integer and floating point number.
 83  Write a program to demonstrate the results obtained by using the increment operators on operands with pre- and post- effect.
 84   Write a program to demonstrate the results obtained by using the increment operators on operands in post- mode in an arithmetic expression.
 85  Write a program to demonstrate the results obtained by using the increment operators along-with logical operators on operands.
 86  Write a program to calculate the size in bytes required by data items and in-built data types of C using the "sizeof" operator.
 87  Write a program to demonstrate the evaluation of expression according to the precedence rule.
 88  Find the size of various types of datatypes in c programming language

Decision Making of C Language

IdProgram TitleView
 1  Accept a character from the user and find it is a vowel or not without using any loop
 2  Accept a character from the user and find it is a vowel or not without using any loop
 3  C Program to Make a Simple Calculator Using switch case
 4  15 is greater than 13 ?
 5  9 is less than 10 ?
 6  check a number is even ?
 7  check a number is odd ?
 8  if- else 15 is greater than 18 or not ?
 9   if- else 12 is greater than 10 or not ??
 10   if- else check whether you are young or child ?
 11   if- else check whether it is morning or after noon ?
 12   if- elseProgram to Check Even or Odd
 13  without if- elseProgram to Check Even or Odd
 14  if- else important example
 15  if- else ladder enter a number and check divisible by both 5 and 8, divisible by 8, divisible by 5 or divisible by none.
 16  if- else ladder enter a number and check the Value of a is 10, Value of a is 20, Value of a is 30 or None of the values is matching and show the exact value that you enter.
 17  if- else ladder enter two number and check they are equal, grater or less to each other
 18  Nested if in c programming langauge
 19  Nested if-else in c programming langauge
 20  Nested if-else C Program to show use of Nested If Statements to test multiple conditions
 21  15 is greater than 13 ?
 22  9 is less than 10 ?
 23  check a number is even ?
 24  check a number is odd ?
 25   if- else 15 is greater than 18 or not ?
 26   if- else 12 is greater than 10 or not ??
 27   if- else check whether you are young or child ?
 28   if- else check whether it is morning or after noon ?
 29   if- elseProgram to Check Even or Odd
 30  without if- elseProgram to Check Even or Odd
 31  if- else important example
 32  if- else ladder enter a number and check divisible by both 5 and 8, divisible by 8, divisible by 5 or divisible by none.
 33  if- else ladder enter a number and check the Value of a is 10, Value of a is 20, Value of a is 30 or None of the values is matching and show the exact value that you enter.
 34  if- else ladder enter two number and check they are equal, grater or less to each other
 35  Nested if
 36  Nested if-else
 37  Nested if-else C Program to show use of Nested If Statements to test multiple conditions
 38  Program to find greatest in 3 numbers.
 39  Program to find that entered year is leap year or not.
 40  One line C program to check if a given year is leap year or not
 41  Program to use switch statement. Display Monday to Sunday.
 42  Program to display arithmetic operator using switch case
 43  Write a program that prints the largest among three numbers using two if condiion
 44  Write a program in C to check whether the two given numbers are equal.
 45  Write a program in C to check whether the two given numbers are equal but using = instead of ==
 46  Write a program in C that determines if a year is a leap year in different approach
 47  Write a program in C to check whether a number given by the user is zero, positive, or negative
 48  Write a program in C that prints the grade according to the score secured by a student
 49  Write a program using a switch statement to check whether a number given by the user is odd or even
 50  Write a program in C to carry out the arithmetic operations addition, subtraction, multiplication, and division between two variables (using switch case)
 51  Write a program that checks whether a character entered by the user is a vowel or not (using switch case)
 52  Get the lengths of three sides of a triangle. Check whether the triangle can be formed or not. If possible then classify the triangle as equilateral, isosceles or scalene. Otherwise, if the triangle cannot be formed give the user a chance to re-enter the lengths of the sides or terminate the program.

Loop control in C Language

IdProgram TitleView
 1  Program to reverse a given number
 2  while loop in C Programming
 3  print 1 to 4 using while loop in C Programming
 4  Infinite while loop Example 1
 5  Infinite while loop Example 2
 6  Infinite while loop Example 3
 7  Example of while loop using logical operator
 8  C program to print the multiplication table of 2 from 1 to 10 using while loop.
 9  C program to print the multiplication table of 3 from 1 to 10 using while loop.
 10  Example of do while loop
 11  do while loop in C Programming language
 12  C program to print the multiplication table of 5 from 1 to 10 using do while loop.
 13  C program to print the multiplication table of 9 from 1 to 10 using do while loop.
 14  For loop
 15  Nested For Loop in C
 16  for loop with multiple test conditions
 17  C program to find the sum of first n natural numbers.
 18  C program to print the multiplication table of 6 from 1 to 10 using for loop.
 19  Program to calculate the sum of first n natural numbers using while loop
 20  C program to print the number pattern.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
 21  C program to print the given star pattern.
*
**
***
****
***** 
 22  write a program that accepts an integer from a user and determine wheather it is an odd or even number. The program should validate the input and display an appropriate message to the user if the input is of wrong type, in which case the user should re-enter the integer until the input is correct.
 23  Program to display first 10 natural no. & their sum.
 24  Write a program that illustrates the run time field width and precision adjustment while using printf( ).
 25  Write a program that asks the user to enter some numbers and then find their average using counter-based loop.
 26  Write a program that prints the sum of digits of a number.
 27  Write a program to print the sum of the series 1+2+3+4+... up to n terms.
 28  Write a program that prints the sum of digits of a number using for loop.
 29  Write a program to solve the following problem- Euler's number e is used as the base of natural logarithms. It may be approximated using the following formula: where n is sufficiently large. Write a program that approximates e using a loop that terminates when the difference between the two successive values of e is less than 0.0000001.
 30  Write a program that reads a list of test scores and calculate their average. An input of -99 for a score denotes end-of-data for the user
 31  Write a program that reads a list of test scores and calculate their average. An input of EOF(by pressing CTRL+Z) for a score denotes end-of-data for the user
 32  Write a program to find the factorial of a number using for loop
 33  Write a program to check whether a number is a prime number or not.(Using While loop)
 34  Write a program that prints out a multiplication table.
 35  Write a program for printing prime numbers between 1 and 100.
 36  Write a program to compute the square root of a given number (without using sqrt() function of the math library).
 37  Write a program that will compute the binary equivalent number of a decimal number and print it as output.
 38  Write a program that will compute the Fibonacci series and print it as output.
 39  Nested do while of Loops in C Programming Language
 40  Nested while Loops in C Programming Language
 41  Nested for Loop in C Programming Language
 42  break statement in while loop
 43  break statement in do while loop
 44  break statement in for loop
 45  continue statement in for loop
 46  continue statement in for loop
 47  C Program to Check whether the Given Number is a Palindromic
 48  C program to print square or rectangle star pattern
*****
*****
*****
*****
*****
 49  C program to print hollow rhombus, parallelogram star pattern
    *****
   *   *
  *   *
 *   *
*****
 50  C program to print square or rectangle star pattern
********************
********************
********************
********************
********************
 51  C program to print hollow square or rectangle star pattern.
*****
*   *
*   *
*   *
*****
 52  Logic to print hollow rectangle star pattern.
***************
*             *
*             *
*             *
***************
 53  C program to print hollow square star pattern with diagonal
*****
** **
* * *
** **
*****
 54  C program to print rhombus or parallelogram star pattern
    *****
   *****
  *****
 *****
*****
 55  C program to print mirrored rhombus, parallelogram star pattern
*****
 *****
  *****
   *****
    *****
 56  Program to print mirrored parallelogram star pattern
 
********
 ********
  ********
   ********
    ********
     ********
      ********
       ********
        ******** 
 57  C program to print hollow mirrored rhombus, parallelogram star pattern
*****
 *   *
  *   *
   *   *
    *****
 58  Program to print hollow mirrored parallelogram star pattern
*********
 *       *
  *       *
   *       *
    *       *
     *********
 59  C program to print right triangle star pattern
*
**
***
****
*****
 60  C program to print hollow right triangle star pattern
*
**
* *
*  *
*****
 61  C program to print mirrored right triangle star pattern
    *
   **
  ***
 ****
*****
 62  C program to print hollow mirrored right triangle star pattern
    *
   **
  * *
 *  *
*****
 63  C program to print reverse right triangle star pattern
*****
****
***
**
*
 64  C program to print hollow inverted right triangle star pattern
*****
*  *
* *
**
*
 65  C program to print reversed mirrored right triangle star pattern
*****
 ****
  ***
   **
    *
 66  C program to print hollow mirrored inverted right triangle star pattern
*****
 *  *
  * *
   **
    *
 67  C program to print Equilateral triangle (Pyramid) star pattern
    *
   ***
  *****
 *******
*********
 68  C program to print hollow pyramid (Equilateral triangle) star pattern
    *
   * *
  *   *
 *     *
*********
 69  C program to print reverse Pyramid star pattern
*********
 *******
  *****
   ***
    *
 70  C program to print hollow inverted pyramid star pattern
*********
 *     *
  *   *
   * *
    *
 71  C program to print half diamond star pattern
*
**
***
****
*****
****
***
**
*
 72  C program to print mirrored half diamond star pattern
    *
   **
  ***
 ****
*****
 ****
  ***
   **
    *
 73  C program to print diamond star pattern
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *
 74  C program to print hollow diamond star pattern
**********
****  ****
***    ***
**      **
*        *
*        *
**      **
***    ***
****  ****
**********
 75  C program to print left arrow star pattern
     *****
   ****
  ***
 **
*
 **
  ***
   ****
    *****
 76  C program to print right arrow star pattern
*****
  ****
    ***
      **
        *
      **
    ***
  ****
*****
 77  C program to print plus star pattern
    +
    +
    +
    +
+++++++++
    +
    +
    +
    +
 78  C program to print X star pattern
*       *
 *     *
  *   *
   * *
    *
   * *
  *   *
 *     *
*       *
 79  C program to print 8 star pattern
 ****
*    *
*    *
*    *
*    *
 ****
*    *
*    *
*    *
*    *
 ****
 80  C program to print heart star pattern
  ***    ***
 *****  *****
**************
*************
 ***********
  *********
   *******
    *****
     ***
      *
 81  C program to print heart star pattern with name in center
  *****     *****
 *******   *******
********* *********
*******atnyla******
 *****************
  ***************
   *************
    ***********
     *********
      *******
       *****
        ***
         *
 82  C program to print 0 or 1 square number pattern
11111
11111
11111
11111
11111
 83  Program to print number pattern of 1's and 0's at alternate rows
11111
00000
11111
00000
11111
 84  C program to print box number pattern with 1 and 0
11111
10001
10001
10001
11111
 85  Program to print number pattern with 1, 0
11111
00000
11111
00000
11111
 86  C program to print number pattern with 1, 0 at alternate columns
10101
10101
10101
10101
10101
 87  Program to print number pattern at even/odd columns
10101
10101
10101
10101
10101
 88  C program to print box number pattern of 1 with 0 center
11111
11111
11011
11111
11111
 89  C program to print chessboard number pattern with 1 and 0
10101
01010
10101
01010
10101
 90  C program to print box number pattern with plus in center
11011
11011
00000
11011
11011
 91  C program to print box number pattern of 1 and 0 with cross center
10001
01010
00100
01010
10001
 92  C program to print circle box number pattern with 1 and 0
01110
10001
10001
10001
01110
 93  Program to print the given pattern
11111
22222
33333
44444
55555
 94  Program to print the given pattern
12345
12345
12345
12345
12345
 95  Program to print the given pattern
12345
23456
34567
45678
56789
 96  Program to print the given number pattern
1  2  3  4  5
6  7  8  9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
 97  Program to print number pattern
55555
54444
54333
54322
54321
 98  Program to print the given number pattern
12345
23455
34555
45555
55555
 99  Program to print the given number pattern reverse
6777777
5677777
4567777
3456777
2345677
1234567
 
 100  Program to print the given pattern
12345
23451
34521
45321
54321
 101  Program to print the given number pattern
12345
21234
32123
43212
54321
 102  Program to print the given number pattern
555555555
544444445
543333345
543222345
543212345
543222345
543333345
544444445
555555555
 103  Print perfect square spiral number pattern
1    2    3    4    5    6
20   21   22   23   24   7
19   32   33   34   25   8
18   31   36   35   26   9
17   30   29   28   27   10
16   15   14   13   12   11 
 104  Program to print the given number pattern
1
22
333
4444
55555
 105  Program to print the given number pattern
55555
4444
333
22
1
 106  Logic to print the given number pattern
55555
 4444
  333
   22
    1
 107  Program to print the given number pattern
11111
2222
333
44
5
 108  Logic to print the given number pattern
11111
 2222
  333
   44
    5
 109  Program to print the given number pattern
5
44
333
2222
11111
 110  Print the given number pattern
    5
   44
  333
 2222
11111
 111  Program to print the given number pattern
1
12
123
1234
12345
 112  Print the given number pattern
    1
   12
  123
 1234
12345
 113  Logic to print the given number pattern
12345
1234
123
12
1
 114  Logic to print the given number pattern
12345
 1234
  123
   12
    1
 115  Logic to print the given number pattern
1
21
321
4321
54321
 116  Logic to print the given number pattern
    1
   21
  321
 4321
54321
 117  Program to print the given number pattern
54321
4321
321
21
1
 118  Logic to print the given number pattern
54321
 4321
  321
   21
    1
 119  Program to print the given number pattern
5
54
543
5432
54321
 120  Program to print the given number pattern
    5
   54
  543
 5432
54321
 121  Program to print the given number pattern
54321
5432
543
54
5
 122  Program to print the given number pattern
54321
 5432
  543
   54
    5
 123  Program to print the given number pattern
5
45
345
2345
12345
 124  Program to print the given number pattern
    5
   45
  345
 2345
12345
 125  Program to print the given number pattern
12345
2345
345
45
5
 126  Program to print the given number pattern
12345
 2345
  345
   45
    5
 127  Program to print the given number pattern
1
23
345
4567
56789
 128  Program to print the given number pattern
    1
   23
  345
 4567
56789
 129  Program to print the given number pattern
56789
4567
345
23
1
 130  Program to print the given number pattern
56789
 4567
  345
   23
    1
 131  Program to print the odd number pattern
13579
3579
579
79
9
 132  Program to print the odd number pattern with spaces
13579
 3579
  579
   79
    9

Array in C Language

IdProgram TitleView
 1  C Program to Read Array Elements
 2  C Program to Print Array Elements
 3  C programming to find out the average of 4 integers
 4  C Program to Delete an element from the specified location from Array
 5  Program to find the average of n (n < 10) numbers using arrays
 6  C Program to Insert an element in an Array
 7  C Program to Copy all elements of an array into Another array
 8  C Program to Search an element in Array
 9  Display Largest Element of an array
 10  Display Smallest Element of an array
 11  C Program to Merge Two arrays in C Programming
 12  C Program to Reversing an Array Elements in C Programming
 13  C Program to Calculate Addition of All Elements in Array
 14  C Program to Delete duplicate elements from an array
 15  Write a program that illustrates the concept of variable length array.
 16  Sort array elements in c programming language
 17  Write a program that will search and find out the position where the given key element exist in a user chosen array and print it as output.
 18  Write a program that uses the binary search algorithm to find out the position where the given key element exist in a user chosen array and print it as output.
 19  C Program to find Second largest Number in an Array

String in C Language

IdProgram TitleView
 1  String in C Example
 2  scanf() to read a string
 3  Reading a line of text Using getchar()
 4  Reading a line of text Using standard library function
 5  Write a program that demonstrates the variety of ways that a string can be printed.
 6  Write a program that demonstrates the way the sprintf( ) and puts( ) library functions work with strings.
 7  Write a program that demonstrates the use of %s conversion specifier in scanf( ).
 8  Write a program that demonstrates the use of width and number of character specifier with %s conversion specifier in printf( ) when used with strings.
 9  Write a program that demonstrates the use of scanset in scanf().
 10  Write a program that demonstrates the joining of two strings using library function strcat( ).

Function in C Language

IdProgram TitleView
 1  Mathematical Functions in c programming langauage
 2  Power series of 3 using c programming language
 3  Power function in c programming language || pow(2,i)
 4  Power series of 2 using c programming language
 5  Function in C Programming Language
 6  Prime Numbers Between Two Integers
 7  Check Prime and Armstrong Number
 8  Integer as a Sum of Two Prime Numbers
 9  Write a function that computes xn, where x is any valid number and n an integer value.
 10  Write a program that uses a function to check whether a given year is a leap year or not.
 11   Write C a program that uses a function to convert a temperature from Fahrenheit scale to Celsius scale.
 12  Write C a program that uses a function show call by value mechanism.
 13  Write a function that uses a function to find the greatest common divisor (GCD) of two integers. Write C a program to test the function.
 14  Write C a program to print the prime factors of a given number using a function.
 15  Write C a program to show that when arrays or strings are passed to a function, call by value mechanism is not followed.
 16  Write a C program that uses a function to sort an array of integers using bubble sort algorithm.
 17  Write a program in C that uses a function to find the average age of students of a class chosen for a junior quiz competition.
 18  Write a program that uses a function to find the maximum value in an array.
 19  Write a program that uses a function to copy one string into another without using the strcpy() function available in the standard library of C.
 20  Write a program that uses a function to perform addition and subtraction of two matrices containing integer numbers.
 21  write a program that uses a function to swap values stored in two integer variables to understand the concept of global variables.
 22  write a program that uses a function to swap values stored in two integer variables to understand the concept of local variables.
 23  Write a program that illustrates the scope rules in blocks.
 24  Write a C program that illustrates the use local static variables and functions.
 25  Write a C program that uses a recursive function for generating the Fibonacci numbers.
 26  Create a power function using c
 27  Create a power function for negative exponent using c
 28  power function in c programming language

Pointer in C Language

IdProgram TitleView
 1  C program to show function pointers as a parameter
 2  A function pointer can be used in place of switch case
 3  Facts about function pointers
 4  Source code to demonstrate, handling of pointers in C program
 5  Write a program to add numbers given by the user through the use of pointers.
 6  Write a example of void pointer.
 7  Write a program to swap two numbers.
 8  Print address of a variable
 9  Reference operator (&) and Dereference operator (*)
 10   Write a program to returning more than one value from a function.
 11  Write a program where the calling function must simply pass an appropriate array pointer and maximum number of elements as arguments. These functions may also be written explicitly in terms of indirect access.
 12  Write a program to point an integer variable which ever is larger between two variables through a function which returns the address of the larger variable.
 13   Write a program where getdata() and show() can be used to read objects into any integer array and to print element values of any integer array, respectively.
 14  Write a program to print the elements of array in reverse order.
 15  Function Pointer in C

Structure in C Language

IdProgram TitleView
 1  Basic Programming of Structure
 2  Write a program to achieve the following: include the relevant header files. a) Define a structure called Books, with the following members: title, author, subject, book_id The title, author and subject should be strings (length 50 each) while book-id should be integer Inside main() function: 1)Declare an array of Books type that has size 5. 2) Accept values from the user and store them in the array in 1 (b)Use the printf() function to display the information in the array.

Union in C Language

IdProgram TitleView
 1  Basic programming of Union

File Input/Output

IdProgram TitleView