Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 223

Comment by Peter - Reinstate Monica on Declaring multiple sequential pointers/values in C

$
0
0
Why don't you show us how you want to use the variables you define? You mention that you are thinking of a loop; an array is the proper data structure for loops, single variables are, by contrast, not. That's often the first step when somebody learns to code: Use an array instead of single variables, and loop over it instead of repeating the same code n times for each single variable.

Viewing all articles
Browse latest Browse all 223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>