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...
Type: Posts; User: Valandu
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...
/* 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>...
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?
I'm not sure I understand completely. Could you give me an example using the function names I provided?
/* 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>...