ok well i am close, but i am still not getting the 0's in the appropriate positions of my array. here is the code i used..
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
void zeros(...
Type: Posts; User: frodo6
ok well i am close, but i am still not getting the 0's in the appropriate positions of my array. here is the code i used..
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
void zeros(...
Yes, I have an idea or two... but I'm not sure if this is the right direction
void zeros(int x[], int n)
{
int i;
for( i = 0; x[i] != '\0'; ++i)
x[i] = '0';
}
Hey guys, I'm pretty new to C and I've been having some difficulty in trying to write a program that will fill an integer array (of size n) with zeros, but only between a certain range of values in...