Pointers in C(2022-23)

 

 

                                                                       Assignment -1

 

 

1.     What is pointer variable? Give example.


2.      Differentiate between static & dynamic memory allocation.

3.       Write a ‘C’ program to calculate area, & perimeter and diameter of circle

using one function for all & use pointers.

4.       Explain types of pointer.

5.       Explain function pointer in details.

6.       Differentiate between array of pointer and pointer to array.

7.       Explain dynamic memory allocation.

8.       Define pointer. Read complex pointer   Int (*p)[]

9.       What array of pointer.

10.   Differentiate between call by value & call by reference.

11.   Program to compute the sum of all elements in an array using pointers.

12.   Explain malloc and calloc functions with example.

13.   Write a C program to accept a n number using pointer and print its reverse.


Comments

Popular posts from this blog

Slip 11: Write node js application that transfer a file as an attachment on web and enables browser to prompt the user to download file using express js.

Slip 7 Create a node js file named main.js for event-driven application. There should be a main loop that listens for events, and then triggers a callback function when one of those events is detected.

Slip 1(a) Write an Angular 13 application addition of two numbers using ng-init, ng-model & ng-bind. And also demonstrate ng-show, ng-disabled, ng-click directives on button component.