Relative Content

Tag Archive for c++algorithm

Why does my program not continue after my 2nd print function (displaying size of array), even though I have given every parameter for the function?

My current situation is that I’m trying to have my program print every nth index (user gives the iteration size) and return the value at every index in the array made. However, I get past my scanf function that has the user choose the iteration size, even including a 2nd print function to test where the program stops (it prints 11 – the # of elements in my array), but that is where it stops, it doesn’t go through my returnNth function, even though every parameter is given…. Any help is greatly appreciated! sorry if this is a simple fix….