About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Tuesday 4 June 2019

CPS: II Sem 'A' Division, Assignment Questions on Arrays, Strings, Functions and Pre Processor.

Array:
Discuss the declaration and initialization of one and two dimensional arrays with syntax and examples.

Programs on Arrays:
Sum and Average of N numbers using array.
Implementation of linear search
Implementation of binary search
Implementation of bubble sort
Programs on arrays (taught in class)

Strings:
What is string?Discuss its declaration and initialization.
Reading and writing strings.
String handling functions (10 types)
Programs on strings (taught in class)

Functions:
Discuss the elements of user defined function with syntax and example.
Explain the categories of user defined functions with examples.
Write user defined function to find length of a string.
Write a c program to implement bubble sort technique.
What are recursive function? 
Write recursive function to find factorial.
Write recursive function to convert binary to decimal.
Differentiate the call by value and call by reference techniques.
What are actual and formal parameters? Give example.
Write user defined function to swap two values using pointers.

Preprocessor:
What are preprocessors? Discuss the types with syntax and examples.
1)Macro substitution directives
2) File inclusion directives
3) Compiler control directives.



No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...