I want to get a variable from user and set it for my array size. But in C I cannot use variable for array size. Also I cannot use pointers and * signs for my project because i'm learning C and my teacher said it's forbidden. Can someone tell me a way to take array size from user?
At last, I want to do this two projects: 1- Take n from user and get int numbers from user then reverse print entries. 2- Take n from user and get float numbers from user and calculate average. The lone way is using array with variable size.
<3
EDIT (ANSWER THIS):
Let me tell full of story.
First Question of my teacher is: Get entries (int) from user until user entered '-1', then type entry numbers from last to first. ( Teacher asked me to solve this project with recursive functions and with NO any array ) Second Question is: Get n entries (float) from user and calculate their average. ( For this I must use arrays and functions or simple codes with NO any pointer )