Chadalawada Ramanamma Engineering College: B. Tech I Year I Semester (R20) Supplementary Examinations, November - 2021
Chadalawada Ramanamma Engineering College: B. Tech I Year I Semester (R20) Supplementary Examinations, November - 2021
Chadalawada Ramanamma Engineering College: B. Tech I Year I Semester (R20) Supplementary Examinations, November - 2021
UNIT-I
2. (a) Explain the basic structure of a C program with an example.
OR
3. (a) Show how break and continue statements are used in a C program, with example.
(b) Explain switch statement with syntax. Write a Program to perform arithmetic operations
using switch.
UNIT-II
4. (a) Illustrate multidimensional arrays with example program.
(b) Write a C program to implement strcmp() , strcat() , strcpy() and strlen().
Continued in page 2
Page 1 of 2
CODE: 20CA05101
OR
5. (a) Write a C program to count the number of vowels, consonants, digits, spaces and special
characters in a given string.
(b) Write a C program to find the largest element in an array.
UNIT-III
6. (a) What is function? Explain the difference between user defined and library functions.
(b) Explain two categories of argument passing techniques, with examples.
OR
(a) Distinguish between the following:
7.
a) Actual and formal arguments b) Global and local variables
(b) Explain in detail about various storage classes available in C language with examples.
UNIT-IV
8. What is dynamic memory management? Explain different dynamic memory management
functions available in C language.
OR
9. (a) What is pointer? give the advantages and disadvantages of pointer data type.
(b) Write a C program to read and display multiple strings using pointers.
UNIT-V
10. (a) What is a union? For what kind of applications are unions are useful? Explain the unions
with an example.
(b) Write a C program that reads contents of a file and displays then in capital letters if they
are alphabets.
OR
11. (a) What is the need of nested structures? Explain with one example.
(b) List out the differences between unions, structures and arrays.
*****
Page 2 of 2