ASSIGNMENT 3
1. MANAGING MEMORY
1.1 Define the following terms:-
i. Sizeof()
ii. Malloc()
iii. Calloc()
iv. Realloc()
v. Free()
1.2 Write a program fragment how you use a Malloc() and Free() an a c++ program.
2. POINTER
2.1 What is pointer ?
2.2 Why you use pointer?
2.3 What is output by the following program segment?

2.4 What is output by the following program segment?

3. FILE INPUT AND FILE OUTPUT
3.1 Write a program that reads the content of a file(oldfile.dat) as follows and write it into a new file(newfile.dat).

No comments:
Post a Comment