N
Naren
Hello grp,
I have a doubt.
This is an example program I have written.
May not be useful but just wanted to understand.
short int hello(short int *i);
main()
{
short int i=2;
i = hello(&i);
i = hello(&i);
printf("%d",i);
}
short int hello(short int *i)
{
short int ret = *i;
return ret;
}
This works fine but I thought of replacing the two calls to hello
By one call
i = hello(&(i = hello(&i)));
I get two errors expected l-value and
too few parameters..
Could anyone kindly explain me this.
Thaanx in advance.
Rgds,
Naren.
I have a doubt.
This is an example program I have written.
May not be useful but just wanted to understand.
short int hello(short int *i);
main()
{
short int i=2;
i = hello(&i);
i = hello(&i);
printf("%d",i);
}
short int hello(short int *i)
{
short int ret = *i;
return ret;
}
This works fine but I thought of replacing the two calls to hello
By one call
i = hello(&(i = hello(&i)));
I get two errors expected l-value and
too few parameters..
Could anyone kindly explain me this.
Thaanx in advance.
Rgds,
Naren.