Hello,
I am completely new to C programming. I use to be a Java programmer but I need to write a program in C. I am looking for a way to initialize an array with a computed length and didn't find any example in all the tutorials I found. The problem could be simplified to the following : ask the user to enter the length of the array, intialize the array to that length. How can one intialize an array with a length that is unkown at compile time ?
I am completely new to C programming. I use to be a Java programmer but I need to write a program in C. I am looking for a way to initialize an array with a computed length and didn't find any example in all the tutorials I found. The problem could be simplified to the following : ask the user to enter the length of the array, intialize the array to that length. How can one intialize an array with a length that is unkown at compile time ?