+ 1
Can we consider the loops as a function??
As we know that () represents a function either a predefined function or a user defined function. So can we say that the for loop and while loop are also predefined functions????
2 ответов
+ 6
nope, loops are control structures, just like conditionals.
You pass parameters to functions, whereas loops take a condition.
+ 2
no,loops are not use as functions.loops are used to access multiple entries of data member.