CSCI 515 C/C++ Programming Fall 2001

THERE IS NO WAY TO DISPLAY THE ENTIRE ARRAY IN ONE LINE!!! printf(“%d\n”, sodaPrice); // that will not display the entire array. Display code is the SAME for all datatypes. notice I use printf() to print each ELEMENT on a separate line. Displaying values in multiple datatype arrays Double Integer Char //… printf(“%lf\n”, sodaPrice[0]); ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download