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

DSA LAB 0 Functions

The document outlines a lab assignment for B.Tech. CSE students at Manav Rachna University, focusing on implementing basic C programming concepts. It includes tasks such as calculating factorials using iteration and recursion, finding the greatest of three numbers, generating a Fibonacci series, and checking for palindromes. The aim is to enhance understanding of linear data structures through static memory allocation.
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)
19 views1 page

DSA LAB 0 Functions

The document outlines a lab assignment for B.Tech. CSE students at Manav Rachna University, focusing on implementing basic C programming concepts. It includes tasks such as calculating factorials using iteration and recursion, finding the greatest of three numbers, generating a Fibonacci series, and checking for palindromes. The aim is to enhance understanding of linear data structures through static memory allocation.
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

MANAV RACHNA UNIVERSITY, FARIDABAD

Department of Computer Science and Technology


Course: B.Tech. CSE Semester: II
Session: Jan- June 2025 Subject: Data Structures CSH103B T&P
________________________________________________________________________

LAB 0

Aim: To implement and analyse basic concepts (functions) of C programming

CO1: To implement the operations of Linear data structures using static memory
allocation.

Bloom's Taxonomy Level: BT3

1. Write a program in C to call two functions func_iter(int n), func_rec(int n), to print the
factorial of a number using iteration and recursion respectively.

2. Write a program in C to call a fuctionfunc_greatest(int a, int b, int c) to find the greatest


number among three number given by user.

3. Write a program in C to call a function func_fibonacci(int n) to print Fibonacci series .

4. Write a program in C to call a function func_palindrome (int n) to check whether a


number is palindrome or not.

You might also like