Click here to Skip to main content
14,696,277 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to decrement all the values (in single time) of integer pointer array without using loop.
Is it possible, Any function is there in 'C'?
Posted
Updated 5-Jun-13 2:25am
v2
Comments
CPallini 5-Jun-13 7:36am
   
Yuor question makes no sense. Please elaborate (possibly an example would help).
Mohibur Rashid 5-Jun-13 7:42am
   
do you know recursive function?

1 solution

No. There is no standard function in C to decrement every element of an array.
A loop is the obvious choice: it would in theory be possible to do this with a recursive function, but in practice that is just hiding the loop and introducing a new level of unnecessary complication, an associated drop in performance and a vast increase in stack usage.
   
Comments
nv3 5-Jun-13 8:22am
   
+5. Just another of these senseless tutorial questions that nobody needs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900