APR22 Problem Solving Using C
APR22 Problem Solving Using C
Page 1 of 2
6. a) Write a C-program to count the number of odd numbers and even numbers present in an
array. (7M)
b) Write a program in C to compare the length of two strings. (7M)
UNIT-IV
7. a) How you can use a pointer to read and print a string? Give an example. (7M)
b) Write a C recursive program to print Fibonacci numbers upto N. (7M)
(OR)
8. a) Write a C program to exchange values of two integers using call by reference. (6M)
b) Write a C program to create one block of memory of size is equal to four integers, read
four integer values and display them along with their address. (8M)
UNIT-V
9. a) Analyze the similarities and dissimilarities between array of structures and array within
structures in C. (8M)
b) Write a C program to count the number of vowels present in a file. (6M)
(OR)
10. a) Write a C Program that defines and access Union with members Book Name, Author,
Number of pages and Publisher. (7M)
b) Write a C program to read and print data present in a file. (7M)
*****
Page 2 of 2