About Me

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

Wednesday 20 November 2019

Assignment-3 C for Problem Solving for I Sem G Division by C. S. Kusur

What is one dimensional array? Discuss its declaration and initialization with syntax and examples.

What is two dimensional array? Discuss its declaration and initialization with syntax and examples.

Discuss the elements of user defined functions with syntax and examples.

What are actual and formal parameters?Give programming example.

Discuss the categories of functions with examples.

Write differences between call by value and call by reference methods.

What is recursive function? Give programming example.

Discuss the following storage classes used in C with examples.
automatic variables
global variables
static variables
register variables


Write a function to find largest of two numbers.
Write a function to find factorial of n
Write a function to find length of a string
Write a function named isprime(n) that returns 0 if the number is not prime; otherwise, it returns 1.

What is structure? Discuss its declaration with syntax and examples.

What is pointer? Discuss its declaration and initialization with syntax and examples.

What is DMA (dynamic Memory Allocation)?Discuss the memory allocation functions like malloc(), calloc(), realloc() and free() with syntax and examples.

Give programming example for DMA.

What are preprocessors?List and discuss the different types of preprocessors.

Write a c program to swap (interchange) the contents of two variables using pointers.





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 ...