opus:fall2012:asowers:cprogpart2
Table of Contents
cprog Keyword 2
Identification of chosen keyword.
References
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
- Reference 1
- Reference 2
- Reference 3
cprog Keyword 2 Phase 2
Identification of chosen keyword.
Arrays
Arrays are buckets or memory locations that group similar integers or character strings.
Arrays can be manipulated to hold different values of any datatype as long as that datatype is consistant across the entire array. You can even copy the contents of one array to another!
Example:
#include<stdio.h> int main() { int array [5]; int i; short onethroughfive [5]; array[0] = 45; array[1] = 56; array[2] = 34; array[3] = 42; array[4] = 32; for(i=0; i<5; i++){ *(onethroughfive+i)=*(array+i); } for (i=0; i<5; i++){ printf("%d\n", *(onethroughfive+i)); } return (0); }
References
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
- Reference 1
- Reference 2
- Reference 3
opus/fall2012/asowers/cprogpart2.txt · Last modified: 2012/10/18 13:51 by asowers