Okai this is the program, or at least I think so. What the fiddlesticks is wrong with it?
This is basic C-free programming so I don't need complex ways of fixing it... Ooh and I need to know the parameters of the two function like what kinds are they. So I made out thatCode:#include <stdio.h> void double_trouble(int *p,int y); void trouble(int *x,int*y); int main(void) { int x,y; trouble(&x,&y); printf("x=%d,y=%d\n",x,y); return(0); } void double_trouble(int *p,int y) { int x; x=10; *p=2*x-y; } void trouble(int *x,int *y) { double_trouble(x,7); //don't they have to have *x and *y specified inside the function double_trouble(y,*x); }
Double_trouble = *p: Input and output
Y: Input
Trouble = *x: Input
*Y:?
So where am I going wrong here?



1Likes
LinkBack URL
About LinkBacks
. What the fiddlesticks is wrong with it?



