+ 2
How van we make n array without knowing n?
For example i'll be given n line that each line includes series of x & y and i want to save each line in one array . How i can i do it?
2 Respuestas
+ 3
TBH I'm not getting your illustration clearly. What are x and y? and how you want to have their series? Maybe an example to improve the illustration clarity?
+ 2
Hi Maryam K
If you are getting the size of n from user input, you can use dynamic memory allocation to create the necessary arrays.
Take a look on the memory allocation function malloc, calloc and realloc. They will aid you to create variable size arrays.
Good luck.