Hello, Anybody tell me how this recursive call works and its answer
int fun(int *a, int n)
{
if (n<=0)
return 0;
else if(*a %2==0)
return (*a +fun(a+1,n-1));
else
return (*a-fun(a+1,n-1));
}
int main()
{
int a[]={12,7,13,4,11,6};
printf("%d",fun(a,6))...
Hello stefanwagner,
what i mean is,
I have a dos program that I wish to access through my java program...
I can run the program and read the programs output using
DataInputStream in = new DataInputStream(new BufferedInputStream
process.getInputStream()));
But when I try to write to the...
Hello friends,
Actually i am working in java project in which i have to dynamically interact with cmdline window i.e. pass data to cmd
& fetch from cmd dynamically. so plz give me some hint.
Thanx,
Regards
Patel
Hello,
I have problem of fetching cmdline output to textfile & passing parameter to cmdline from textfile in java, give me some hint for how to do it? thanx.
regads,
Patel
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.