Search:

Type: Posts; User: frodo6

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,465

    ok well i am close, but i am still not getting...

    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(...
  2. Replies
    8
    Views
    1,465

    Yes, I have an idea or two... but I'm not sure if...

    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';
    }
  3. Replies
    8
    Views
    1,465

    Replacing Integers

    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...
Results 1 to 3 of 3