[go: up one dir, main page]

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

C Programming Lab

The document outlines a practical programming course in C, detailing its structure, credit hours, and course outcomes. It includes specific programming tasks aimed at developing skills in variable usage, operators, conditional statements, pointers, and dynamic memory management. The tasks range from basic operations like finding max/min values and calculating interest to more complex functions involving matrices and file manipulation.

Uploaded by

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

C Programming Lab

The document outlines a practical programming course in C, detailing its structure, credit hours, and course outcomes. It includes specific programming tasks aimed at developing skills in variable usage, operators, conditional statements, pointers, and dynamic memory management. The tasks range from basic operations like finding max/min values and calculating interest to more complex functions involving matrices and file manipulation.

Uploaded by

vargina aslam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Subjec Subject Title Credi Lectur Tutoria Practica Type

t Code t e l l
Core - Practical - I – 4 5 Practica
Programming in C l
Lab

Course Outcome:

CO1 : Understand basic Structure of the C-PROGRAMMING, declaration and


usage of variables
CO2 : Understand C programs using operators
CO3 : Exercise conditional and iterative statements to Write C programs
CO4 : Understand for C programs using Pointers to access arrays, strings and
functions
CO5 : Understand C programs using pointers and allocate memory using dynamic
memory management functions.

1. Write a program for find the max and min from the three numbers.
2. Write the program for the simple, compound interest.
3. Write program for students marks grading.
4. Write a C program, which takes two integer operands and one operator from the
user, performs the operation and then prints the result. (Consider the operators +,-,*, /,
% and use Switch Statement)
5. Write a C program to find the sum of individual digits of a positive integer and test
given number is palindrome.
6. Write a C program to generate all the prime numbers between 1 and n, where n is a
value supplied by the user.
7. Write a C program to find the roots of a Quadratic equation.
8. Write a C program that uses functions to perform the following:
a) Addition of Two Matrices b) Subtraction of Two Matrices.
9. Write a C program to determine if the given string is a palindrome or not using
pointer.
10. Write a C program to count the lines, words and characters in a given text.
11. Write a C program which copies one file to another.
12. Write a C program to reverse the first n characters in a file. (Note: The file name
and n are specified on the command line.)

You might also like