0% found this document useful (0 votes)
6 views

POP Using C Module 3 and 4_New

The document outlines a series of programming tasks and concepts related to C programming, focusing on user-defined functions, recursion, arrays, and string manipulation. It includes writing programs to demonstrate various storage classes, the scope of static and global variables, and the handling of one-dimensional and two-dimensional arrays. Additionally, it covers algorithms for string operations and provides specific programming assignments for practical implementation.

Uploaded by

h42443765
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

POP Using C Module 3 and 4_New

The document outlines a series of programming tasks and concepts related to C programming, focusing on user-defined functions, recursion, arrays, and string manipulation. It includes writing programs to demonstrate various storage classes, the scope of static and global variables, and the handling of one-dimensional and two-dimensional arrays. Additionally, it covers algorithms for string operations and provides specific programming assignments for practical implementation.

Uploaded by

h42443765
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

POP Using C Module 3

1 Write a C program that employs Library Functions and User-Defined Functions. Describe the
advantages of User-Defined Functions over library functions.

2 Write a C program that employs User-Defined Functions and explain the following in detail:
i) Function Prototype ii) Function Call iii) Function Definition

3 Write the general form and C program for the following


i) A function with arguments but no return value

4 Write the general form and C program for the following:


i) A function with no arguments but with a return value

5 Define static variables and write an appropriate C program to explain the scope of static variables.

6 Define global variables and write an appropriate C program to explain the scope of global variables.

7 Write program/s to demonstrate the various storage classes in C

8 Explain the concept of recursion. Write a C program to find the factorial of a number using
recursion.

9 Explain the concept of recursion. Write a C program to generate the Fibonacci series using
recursion.

10 Explain the following with respect to 1-D arrays:


i) Accessing elements ii) Storing values

11 Explain the following with respect to 2-D arrays:


i) Accessing elements ii) Storing values

12 Write a C program and explain the passing of individual 1-D array elements to a function.

13 Write a C program and explain the effect of passing the whole 1-D array to a function.

14 Explain the various ways in which a 2D array can be initialized. Write a C program to add the
elements of two 2-D arrays.

15 Explain 3 ways in which a matrix can be initialized. Write a C program to subtract two matrices.

16 Give a brief overview of arrays with more than two dimensions

17 Describe the passing of multidimensional arrays to functions.

POP Using C Module 4

1 Draw and explain the taxonomy/ classification of strings in detail.

2 Write the steps (algorithm only) to calculate the length of a string.

3 Write the steps (algorithm only) to reverse a string.

4 Write a C program to concatenate two strings using the strcat function.

5 Determine if two strings are identical or not by writing a C program using the strcmp function.

You might also like