10 C Programming Practicals (Problem Sets) You Should Try to Excel in C Programming - BeTech India!

Latest

BeTech India! - A place for all your Tech. needs | Solutions of Competitive Programming Problems | Code Explained | Indian Engineering System | Technology News | Current Updates | My Excerpts from Experiences | Coding Tips and much more...

Monday, December 31, 2018

10 C Programming Practicals (Problem Sets) You Should Try to Excel in C Programming

Top 10 C Programming Practicals (Problem Sets)


The main purpose of Computer Science is 'Problem-Solving' and the Programming is merely just a tool to solve The Problems. So, It is must Required for you to Excel in Any Programming Language. Because you should be able to solve any problems using that programming language.

Here, I have Given 10 C Programming Practicals Which you are expected to Do by yourself.. By doing these all sets you would easily excel in C Programming Language. 


10 C Programming Practicals (Problem Sets)
10 C Programming Practicals (Problem Sets)

10 C Programming Practicals (Problem Sets) You Should Try to Excel in C Programming

PRACTICAL-SET—1

a. Write a program to print ―HELLO FRIENDS.
b. Write a program that reads two nos. from keyboard and gives their addition, subtraction, multiplication, division, and modulo.
c. Write a program to convert days into months and days.
d. Write a program to solve the Quadratic Equation.
e. Write a program to select & print the largest of the three nos. using Nested-If-Else statement.

PRACTICAL-SET—2

1. Write a program to display a multiplication table.
2. Write a program to print 1+1/2+1/3+1/4+………+1/N series.
3. Write a program to find a sum of all integers greater than 100 & less than 200 and are divisible by 5.
4. The distance between two cities (In KM) is input through keyboard. Write a program to convert and print this distance in meters, feet, inches & centimeters.
5. Write a program to find a 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. Program to print Patterns.
*
* *
* * *
* * * *

3. 1 2 3 4 5
    2 3 4 5
    3 4 5
    4 5
    5

4. AAAAA
    BBBB
    CCC
    DD
    E

5. 1
    0 1
    1 0 1
    0 1 0 1

PRACTICAL-SET-4

1. Write a program to print Fibonacci series. 1,1,2,3,5,……N
2. Write a program to reverse the digit.
3. Add, subtract and multiply two nos. using a switch statement.
4. Write a program to add two matrixes.
5. Write a program to give no in ascending order.
6. W.A.P to read an array of integers and print it in reverse order

PRACTICAL-SET-5

1. Write a program to count total words in the text.
2. Find length of string using strlen( ) function,
3. Write a program to copy one string to another string.
4. Write a program to join two strings.
5. Write a program convert a character into TOggLe character.
6. Find given string is palindrome or not using the 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 power that computes x raised to the power y for integer x and y and returns double type value.
4. Write a program to find the factorial of a number using recursion.
5. Write a program that used user-defined function Swap ( ) and interchange the value of two variable.
6. Write a function prime that return 1 if it‘s an 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 type, personal, that would contain person name, date of joining and salary. Using this structure, write a program to read this information for one person from the keyboard and print the same on the screen.
2. Define a structure called cricket that will describe the following information:
a. Player name
b. Team name
c. Batting average
3. Write a function to enter roll no, marks of the three subject for 3 students and find total obtained by each student

PRACTICAL-SET-8

f. Write a program using pointer and function to determine the length of a string.
g. Write a program using a pointer to compare two strings.
h. Write a program using a pointer to concate two strings.
i. Write a program using a pointer to copy one string to another string.
j. Write a program using a pointer to read an array if integer and print element in reverse order.


PRACTICAL-SET-9

1. Write a program that uses a table of integers whose size will be specified interactively at runtime.
2. Write a program to store a character string in the block of memory space created by malloc and then modify the same to store a large string.

PRACTICAL-SET-10

1. A program to illustrate reading files contents.
2. A program to illustrate the use of fgets( ).
3. A program to illustrate the use of fputc ( ) and fputs( ).

I Hope, You'll be able to solve all the problem sets I've given and will excel in c language...

Share with Your Programmer Buddies and Challenge them to solve these 10 C Programming Practicals.

No comments:

Post a Comment

Guys, if you have any doubts or suggestions please let us know.