C Assignment (2)
C Assignment (2)
Short Questions
Long Questions
Programming Questions
1. Write a C program to find the factorial of a given number using recursion.
2. Implement a function in C to check if a given string is a palindrome or not.
3. Implement a C program to calculate the sum of all elements in an array.
4. Write a function in C to reverse a given integer number.
5. Create a program in C to find the largest element in an array.
6. Implement a C program to convert a decimal number to binary.
7. Write a C program to calculate the power of a number using recursion.
8. Create a program in C to find the Fibonacci series up to a given term.
9. Implement a function in C to compute the factorial of a number using iteration
(without recursion).
10. Write a program in C to find the sum of all prime numbers within a given range.
11.Implement a function in C to reverse a given string without using any library
functions.
12.Write a program to check if a given number is Armstrong or not.
13.Implement a C program to find the factorial of a large number using arrays.
14.Write a program to merge two sorted arrays into a single sorted array in C.