Online Courses
Free Tutorials  Go to Your University  Placement Preparation 
Goeduhub's Online Courses @ Udemy in Just INR 570/-
Online Training - Youtube Live Class Link
0 like 0 dislike
525 views
in JNTU BTech (CSE-I-Sem) C PROGRAMMING AND DATA STRUCTURES LAB by Goeduhub's Expert (7.1k points)
edited by

Jawaharlal Nehru Technological University(JNTU) B.Tech (CSE-I-Sem) C Programming and Data Structures Lab Experiments and Solutions With Required Theory

JNTU Home

Goeduhub's Top Online Courses @Udemy

For Indian Students- INR 360/- || For International Students- $9.99/-

S.No.

Course Name

 Coupon

1.

Tensorflow 2 & Keras:Deep Learning & Artificial Intelligence

Apply Coupon

2.

Natural Language Processing-NLP with Deep Learning in Python Apply Coupon

3.

Computer Vision OpenCV Python | YOLO| Deep Learning in Colab Apply Coupon
    More Courses

1 Answer

0 like 0 dislike
by Goeduhub's Expert (7.1k points)
edited by
 
Best answer

Jawaharlal Nehru Technological University(JNTU) B.Tech (CSE-I-Sem) C Programming and Data Structures Lab

S.No. List Experiments
1.
2.
3. Write C programs that use both recursive and non-recursive functions
  • To find the factorial of a given integer.
  1. Using Recursion
  2. Without using recursion
4.
5.

(A)Write a C program to find both the largest and smallest number in a list of integers.

(B)Write a C program that uses functions to perform the following:

6.

a) Write a C program that uses functions to perform the following operations:

b) Write a C program to determine if the given string is a palindrome or not
7.

a) Write a C program that displays the position or index in the string S where the string T begins, or – 1 if S doesn‘t contain T.

b) Write a C program to count the lines, words and characters in a given text.

8.

a) Write a C program to generate Pascal‘s triangle.

b) Write a C program to construct a pyramid of numbers.

9.

Write a C program to read in two numbers, x and n, and then compute

the sum of the geometric progression:

1+x+x2+x3+………….+xn

For example: if n is 3 and x is 5, then the program computes

1+5+25+125.

Print x, n, the sum

Perform error checking. For example, the formula does not make sense for negative exponents – if n is less than 0. Have your program print an error message if n<0, then go back and read in the next pair of numbers of without computing the sum. Find if any values of x are also illegal ?

If so, test for them too.

10.

a) 2‘s complement of a number is obtained by scanning it from right to left and complementing all the bits after the first appearance of a 1. Thus 2‘s complement of 11100 is 00100. Write a C program to find the 2‘s complement of a binary number.

b) Write a C program to convert a Roman numeral to its decimal equivalent.

11.

Write a C program that uses functions to perform the following operations:

(Note: represent complex number using a structure.)

12.

a) Write a C program which copies one file to another

b) Write a C program to reverse the first n characters in a file

13.

a) Write a C programme to display the contents of a file.

b) Write a C programme to merge two files into a third file (i.e., the contents of the first file followed by those of the second are put in the third file)

14. Write a C program that uses functions to perform the following operations on singly linked list:
  • Creation
  • Insertion
  • Deletion
  • Traversal

For full Program Click here

15.

Write C programs that implement stack (its operations) using

16.

Write C programs that implement Queue (its operations) using

17.

Write a C program that uses Stack operations to perform the following:

  • Converting infix expression into postfix expression
  • Evaluating the postfix expression

For full Program Click here

18.

Write a C program that implements the following sorting methods to sort a given list of integers in ascending order

19. Write C programs that use both recursive and non recursive functions to perform the following searching operations for a Key value in a given list of integers:
20. Write C program that implements the Quick sort method to sort a given list of integers in ascending order.
21. Write C program that implement the Merge sort method to sort a given list of integers in ascending order.

3.3k questions

7.1k answers

394 comments

4.6k users

Related questions

 Goeduhub:

About Us | Contact Us || Terms & Conditions | Privacy Policy || Youtube Channel || Telegram Channel © goeduhub.com Social::   |  | 
...