Monday, October 22, 2018

Unit 3 CP QUESTIONS

Explain call by reference.
What does this statement indicate p = **a; where p and a are variables?
How many maximum arguments can be passes by return ( )?
Write a function to swap two integer elements.
Explain pointers and arrays with some example programs.
Discuss the problems associated with pointers.
 Define type qualifiers
Define Pointer. Write a C program to find the sum of the all elements in given array using pointers.
Define scope. Briefly explain the scope, life time and visibility of Identifier.
 List the different storage classes in C and explain each one of them.
Write a C program to exchange the value of two integers using call by reference.
Give syntax to create a pointer to function.
 What is the role of stack in recursion?
Give a detailed note on pointer expressions.
List and explain the storage classes with examples.
What is meant by storage class of variable?
What is pointer? Give its General form.
What is meant by the scope of variables and summarize types of storage class in C?
Write a program to assign any number at random to an integer variable k and display the same through pointer.
Discuss any two storage class specifiers.
What are the problems with pointers?
Explain dynamic memory allocation functions of C with a suitable example.
Compare call by value with call by reference and explain using a suitable example.
Write a C program for call by reference.
Illustrate with a suitable example the use of return statement.
Explain malloc() function.
Write a C program to calculate the sum of all elements of an array using pointers as arguments.
What is a pointer? Write a program in C to reflect the concept of pointers to functions.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home