0% found this document useful (0 votes)
11 views1 page

C Programming Practical Assignments Guide

The document outlines a practical assignment for C programming, consisting of 13 questions that cover various programming tasks. These tasks include swapping numbers, solving quadratic equations, checking leap years, and manipulating strings and matrices. Additionally, it involves using structures and file handling to manage employee pay-slips and student information.

Uploaded by

sonukumar534256
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

C Programming Practical Assignments Guide

The document outlines a practical assignment for C programming, consisting of 13 questions that cover various programming tasks. These tasks include swapping numbers, solving quadratic equations, checking leap years, and manipulating strings and matrices. Additionally, it involves using structures and file handling to manage employee pay-slips and student information.

Uploaded by

sonukumar534256
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C Practical Assignment

======================
Answer all the questions.
Q 1). Write a program in c to swap two numbers by using and without using third variable.
Q 2). Write a c program to get all roots of a quadratic equation.
Q 3). Write C program to check given year is a leap year or not?
Q 4). C Program to check given character is a vowel or consonant
Q 5). C program to find sum of digits a number.
Q 6). C program to find the largest and second largest number from 10 given numbers.
Q 7). Write a program in c to transpose the given matrix
Q 8). Write a program in c to print only the diagonal elements of a matrix.
Q 9). Write a program in c to check alphabet, digit or special character.
Q 10).Write a Program in c to check entered string is palindrome or not.
Q 11).Write interactive C programs to perform the following on strings:
(a) To check if two strings are Anagram.
(b) To convert the given string from lower case to upper case without using the inbuilt
function in <string.h>
Q 12).Using Structures in C, write an interactive program to display the pay-slips for 10
employees working in a small departmental stores.
Note: Assumptions can be made wherever necessary and mention them.
Q 13).Using File Handling concept in C programming, write the C programs for the following:
(a) To create and store student information of 10 BCA students in a .txt file.
(b) To edit the file created in (a) to add data for 2 more students.
(c) To delete specific line (one student record) from a file.

You might also like