Homework 5
EENG 112/INFE 112
INTRODUCTION TO PROGRAMMING
HOMEWORK 5
1) N is a given integer. Write a C program to compute the sum of integers from 1 to N, by using
a) call by value,
b) call by reference.
2) For the integer array x given below
int x[]={10, 20, 32, 56, 21};
print the values of the array using;
a) Array subscript notation,
b) Pointer offset notation,
c) Pointer subscript notation,
d) Pointer offset notation where pointer is the array name.
NOTE : Submission of the homework should be made electronically to the e-mail address eeng112@emu.edu.tr