You are on page 1of 2

Academy of Technology

Paper: Programming for Department: 2nd Semester Paper Code: ES-CS201


Problem Solving (All)

Term Paper: 2

I. TOPIC: Pointer in C

II.OBJECTIVE: To implement the power of pointer in terms of dynamic memory allocation


and call by reference.

III.QUESTIONS

1. What is array of pointers? Explain with an example. What is the [2+2]

relationship between an array and a pointer?


2. What is pointer to an array? Explain with an example. [4]

3. Why a[5] == 5[a]? Explain. [3]

4. What do you understand by const pointer? Explain with an [4]

example
5. Why we cannot add two pointers? Why are pointers different sizes [3+2]

on different machines?
6. Is it possible to write scanf statement without ‘&’ operator? Give [2+3]

your logic with an example.


7. Write the output & mention the logic for the below code snippet [5]

void main()
{
int* pc, c, d;
c = 5;
d = -15;
pc = &c;
printf("%d", *pc);
pc = &d;
printf("%d", *pc);
}
Academy of Technology
Paper: Programming for Department: 2nd Semester Paper Code: ES-CS201
Problem Solving (All)

IV: Text Book and References

1. Kanetkar Y, Let us C

2. Balaguruswamy E, Introduction to Computing, TMH WBUT Series

3. Reema Thareja, Computer Fundamentals and Programming in C

Note:

i. Figures and diagram should be original as far as possible

ii. Term paper should be written in your own hand writing

iii. Try to write within 3 – 4 pages

Guidelines for writing Term Paper

Abstract: (….................................................................................) Within 50 -70 words.


Keywords: Function, Domain, Co-domain, Range, One to one, onto, into, Composition, Inverse

Introduction: (…........................................................................) Within 250 – 300 words.

Body: (…..................................................................................) < Theory / Methods / Derivations / Logic /


Conceptual Linkage / Figures / Tables / Analysis / Applications / Pros. and Cons. / Comparison >
(As per requirement and question pattern)

Conclusion / Discussion: (….....................................................) Within 100 – 200 words.

You might also like