10/06/2013

DCT1083 Programming Fundamentals : Assignment 3



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:

Cara download Installer windows 10 dalam format ISO

1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan.  ...