hello, this is on a practice test:
void recur (int x) {
if (x != 0)
recur(x/2);
printf("%d", x%2);
}
Type: Posts; User: sean...
hello, this is on a practice test:
void recur (int x) {
if (x != 0)
recur(x/2);
printf("%d", x%2);
}
ok thanks
yea that was it! thanks
sorry, i meant findroot.c includes cubics.h and cubics.c and cubics.c includes cubics.h
findroot includes cubics.c and findroot.c, cubics.c inclues cubics.h but cubics.h has the #ifdef
well our professor gave us the makefile but i think i have multiple definitions of cubics.c, ill check it out now
the instructions for this program is to use newton method to find zeros of a cubic function. cubics.h is given and it includes function prototypes and we have to write four functions on cubics.c....
ok thanks
hmm ok, but does i point to x or does i point to what x points to?
Hello, this is a problem from a written homework assignment:
i have to draw out a stack model for this
void foo(int **i, int **j){
int *temp;
if (**i < **j) {
Thanks for the help guys but I have 1 more question to clarify prelude's reponse. You said the source code isn't linear but it's compiled linearly. What exactly is compiled lineraly? As you can...
#include <iostream>
// Prototypes
int WidthInFeet();
int WidthInInches(int feet);
int main()
{
// Initialize variables by calling functions.
int feet = WidthInFeet();
What is the point of calling a function? I'm currently reading Sam's teach yourself C++ and its discussing functions. In a sample program, the function is first declared using prototypes. Then it...