Thank you, I misunderstood some important things about arrays. This was fixed by increasing the capacity of each array by 1.
Type: Posts; User: RyanW2050
Thank you, I misunderstood some important things about arrays. This was fixed by increasing the capacity of each array by 1.
#include <stdio.h>
int main(){
int array111[5];
printf("Please enter the 6 array111 numbers.\n");
scanf("%d %d %d %d %d %d", &array111[0], &array111[1],...
Gotcha, fopen definitely isn't populating that pointer. But why wouldn't it? test.txt is in the local directory of the source.c.... does OSX not work that way?
Hi all,
I'm in the early stages of learning C, and I want to develop on OSX. I wrote a simple program that uses fopen() on a .txt file (in the local directory of the source.c file) and uses...