-->

Facebook

Jasper Roberts - Blog

Wednesday, August 27, 2014

C Experiments

List of Experiments

PRACTICAL-SET—1

a.   Write a prograto print HELLO FRIENDS!!
b.   Write a prograthareads two nos. from key board and gives their addition, subtraction, multiplication, division and modulo.
c.   Write a progratconvert days into months and days. d.   Write a prograto solve Quadratic Equation.
e.   Write a prograto select & print the largest of the three nos. using Nested-If-Else statement.


PRACTICAL-SET—2

1.  Write a prograto display multiplication table.
2.  Write a prograto print 1+1/2+1/3+1/4+………+1/N series.
 3. Write a prograto find sum of all integers greater than 100 & less than 200 and are  divisible by 5.
 4. The distance between twcities (In KM) is input througkey board. Write a progratconvert and print this distance in meters, feet, inches & centimeters.
 5.  Write a prograto find sum of first N odd numbers.
Ex. 1+3+5+7+………..+N.


PRACTICAL-SET-3

1.  Write a program for use of putchar( ) and getchar( ) function.
2.  Prograto print Patterns.
*
*  *
*   *   *
*    *   *    *
3.       1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
4.      AAAABBBB CCC
         DD
         E
5.     1
        10
        101
        1010
        10101  


PRACTICAL-SET-4

1.  Write a prograto print Fibonacci series. 1,1,2,3,5,……N
2.  Write a prograto reverse the digit.
3.  Add, subtract and multiply two nos. using switch statement.
4.  Write a progratadd two matrixes.
5.  Write a prograto given no in ascending order.
6.  W.A.P to reaarray of integers and print it in reverse order.



PRACTICAL-SET-5

1.   Write a progratcount total words in text.
2.   Find length of string using strlen( function,
3.   Write a progratcopy one string to another string.
4.   Write a prograto join two strings.
5.   Write a program convert character into TOggLe character.
6.    Find given string is palingrom or not using string library function.



PRACTICAL-SET-6

1.   Write a function program to add first N numbers.
2.   Write a function find out maximum out of three numbers.
3.   Write a function powethat computes x raised to the power y for integer x and y and returns double type value.
4.   Write a prograto find factorial of a number using recursion.
5.   Write a prograthat used user defined function Swap ( ) and interchange the value   of two variable.
6.   Write a function prime that return 1 if it‘s argument is prime and return 0 otherwise.
7.   Write a calculator program(add,subtract,multiply,divide). Prepare user defined function for each functionality.




PRACTICAL-SET-7

          1.   Define a structure typepersonal, that would contain person name, date of joining and salary.
          Using this structure, write a prograto read thiinformation for one person from the key                     board and print the same on the screen.
          2.   Define a structure called crickethat will describe the following information:
a.   Playename b.   Team name
c.   Batting average
           3.   Write a function to enter rollno, marks of the three subject for 3 student and find total                        obtaineby each student

PRACTICAL-SET-8

f.   Write a program using pointeand function to determine the length of stringg.   Write a program using pointer to compare two strings.
h.   Write a program using pointer to concate two strings.
i.   Write a program using pointer to copy one string to another string.
j.    Write a program using pointer to read aarray if integeand print element in  reverse order.


PRACTICAL-SET-9

1.   Write a prograthat uses a table  of integers  whose size will be specified interactivelat run time.
2.   Write a prograto store a character string in block of memory space createby malloc and then modify the same to store a large string.




PRACTICAL-SET-10

1.   A prograto illustrate reading files contents.
2.   A prograto illustrate the use ofgets( ).

3.   A prograto illustrate the use ofputc ( ) and fputs( ).



DOWN LOAD IN     .PDF FORMAT 

No comments:

Post a Comment