Hi!
What exactly are you trying to do???
From what I've understood, you are trying to pass the values
5 and
4 from the file
input to the file
output. If this is what you are trying to do, your files should look like:
input:
======
5
4
output.c
=======
#include < stdio.h >
int main()
{
int k;
int m;
scanf("%d", &k);
scanf("%d", &m);
printf(" %d, %d\n", k, m);
return 0;
}
ofcourse, you can go about with your
C Programs also by modifying your
input.c file to "printf()" 'k' and 'm' and your
output.c should be like the code pasted above, but you'll have to use pipes:
input | output
and just one more thing, check your uninitialized variables!!!
Regards
SHAIK