0

Which is more effective multiple array or using functions ?

18th Sep 2020, 3:21 PM
KARTHIKEYA NERELLA
KARTHIKEYA NERELLA - avatar
5 Respuestas
+ 1
array size is fixed and is basically the number of elements multiplied by the size of an element.Structure size is not fixed as each element of Structure can be of different type and size i know but i dont know how to expose...!
18th Sep 2020, 4:48 PM
KARTHIKEYA NERELLA
KARTHIKEYA NERELLA - avatar
+ 6
From my point of view, you can not compare an array with a function. An array is a data structure, that can hold data types, and also can provide methods to do calculations, filtering with the data stored in the array and so on. A function consists of code and can get arguments and can return values. A function can use data structures as strings, dictionaries and also arrays.A function is used when a task is repeatedly needed, and also to structure the code.
18th Sep 2020, 3:45 PM
Lothar
Lothar - avatar
+ 4
karthikeya Nerella you can't compare an array to a function. Hope this will help ✌️
18th Sep 2020, 3:24 PM
Piyush
Piyush - avatar
+ 3
karthikeya Nerella What is the similarity and what is the difference in function and array?
18th Sep 2020, 3:26 PM
A͢J
A͢J - avatar
+ 3
Lothar You are right. That's what I wanted to know from him but he has less knowledge and less knowledge is always harmful.
18th Sep 2020, 4:44 PM
A͢J
A͢J - avatar