Programming for Problem Solving Using c r19 July 2021
Programming for Problem Solving Using c r19 July 2021
Or
2. a) Define flowchart? How it is useful in writing the programs? Explain about (8M)
different symbols in Flow chart?
b) Implement an algorithm to find the sum of all the numbers in given range of (7M)
numbers.
Or
4. a) Develop a program that asks user an arithmetic operator (‘+’, ‘-‘, ‘*’ or ‘/’) and (8M)
two operands and perform the corresponding calculation on the operands. Use a
switch statement.
b) Differentiate type conversion and type promotion with suitable examples. (7M)
6. a) Develop program to find the average of smallest and largest numbers in a given (8M)
array.
b) Illustrate the use of typedef with a code snippet. (7M)
7. a) Develop a program using pointers to compute the sum of all elements stored in an (8M)
array.
b) What is a pointer variable? How is a pointer variable different from an ordinary (7M)
Variable? Briefly explain pointer arithmetic.
Or
1 of 2
||''|'''|''|'|''''||
Code No: R19ES1101 R19 SET - 1
8. a) What is dynamic memory allocation and explain the difference between malloc() (8M)
and calloc().
9. a) What is a File? Explain fopen() and fclose() functions with suitable examples. (8M)
Or
10. a) Find the sum of digits of a given number using recursion. (8M)
b) Write a C program that reads contents of a file and displays then in capital letters (7M)
if they are alphabets.
2 of 2
||''|'''|''|'|''''||