Function to change array data - data not changing. C
问题 I'm new to C but I've programmed in pascal a few weeks ago. In pascal, if you want to change an arrays data, you pass by reference, by typing var myArray essentially. I can't figure out how to do this in C. I've read a ton of questions but none seem to work. Here's what I have so far. void set_up_elements(char (*array_to_populate)[20]) { char* buffer; FILE *f; f=fopen("elementList.txt","r"); char copied_text[118][20]; int i=0; while (!feof(f)) { fgets(copied_text[i],80,f); ++i; } //Close the