if it's so much easier why is your output different from mine? ;) to get the same result you have to start on the nth index instead of 0 and because nth is 1 based you can't forget to add 1 to the...
Type: Posts; User: Meldreth
if it's so much easier why is your output different from mine? ;) to get the same result you have to start on the nth index instead of 0 and because nth is 1 based you can't forget to add 1 to the...
the easiest way is with a loop.
#include <stdio.h>
#include <stdlib.h>
void save_nth(FILE *fp, int *a, int sz, int nth);
int main()
{