Datasheet

#include <std io.h>
int main() {
int i, *p, arr[4] = {6,2,4,7};
p = &arr[0]; /* Assign the address of the first element to p */
for(i=0;i<(sizeof(arr)/sizeof(int));i++) {
printf("arr[%d]=%d\n",i,*p);
p++; /* Increment the address by sizeof(int) */
}
return 0; /* Return success to the operating system. */
}
void changeAr ray(int *p, unsigned int n) {
int i;
for(i=0;i<n;i++) p[i] = i;
}
int main() {
int arr[4] = {0, 0, 0, 0};
changeArray(arr,4);
main
#include <std io.h>
int main(int argc, char *argv[]) {
int i;
for(i=0;i<argc;i++) { /* Loop over the arguments */
printf("argv[%d] = %s\n",i,argv[i] ); /* Print each argument out */
}
return 0;
}
./commandLine oneArg otherArg
FILE
FILE *filePtr = 0; /* Declare a file pointer and set it to null */
"r" "w"
filePtr = fopen("textFile.txt","w" ); /* Open textFile.txt for writing */
fopen FILE