Вы находитесь на странице: 1из 2

Lab#1

ECE 532 Data Structure Revision - Pointers

Q1
Write a program that has a declaration in main() function to store the following numbers into an array named rates: 6.5, 7.2, 7.5,8.3,8.6,9.4,9.6,9.8, 10.0. Then declare a pointer ratesPtr to point to rates array. There should be a function call to the function named show() that accepts ratesPtr as shown void show(float *ratesPtr), and then display the numbers using the pointer notation *(ratesPtr+i)

Вам также может понравиться