Search:

Type: Posts; User: Valandu

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,727

    How to return certain values from an array?

    Hi, my professor introduced arrays just last friday and wants us to know how to write a C function that returns the number of elements smaller than 3.0 in an array. The function prototype is:

    int...
  2. Replies
    16
    Views
    8,838

    /* Alfredo Perez */ /* earth.c */ /* A program...

    /* Alfredo Perez */
    /* earth.c */
    /* A program that takes depth in KM inside of earth and displays the
    temperature at this depth in degrees Celsius and degrees Fahrenheit */
    #include <stdio.h>...
  3. Replies
    16
    Views
    8,838

    Okay I understand now, but I have a problem when...

    Okay I understand now, but I have a problem when I try to call the function. The compiler tells me that celsius_at_depth and fahrenheit are not functions. Did I not write them correctly?
  4. Replies
    16
    Views
    8,838

    I'm not sure I understand completely. Could you...

    I'm not sure I understand completely. Could you give me an example using the function names I provided?
  5. Replies
    16
    Views
    8,838

    Help with Function Prototypes

    /* Alfredo Perez */
    /* earth.c */
    /* A program that takes depth in KM inside of earth and displays the
    temperature at this depth in degrees Celsius and degrees Fahrenheit */
    #include <stdio.h>...
Results 1 to 5 of 5