0
Which is more effective multiple array or using functions ?
5 Answers
+ 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...!
+ 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.
+ 4
karthikeya Nerella
you can't compare an array to a function.
Hope this will help âď¸
+ 3
karthikeya Nerella What is the similarity and what is the difference in function and array?
+ 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.