Re: Significance of using + before function calls.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/15/06, Vamsi <krishna.vamsi@xxxxxxxxx> wrote:
> Hi List,
>
> i have seen a code snippet which starts with + symbol,
>
> +system("ls -l");
>
> what is the significance of using + symbol before system.
>
> i also tried using + before printf ,, like +printf("Some text"); and it
> is compiling and working tooo,,
>
> Can somebody clarify wht does that + signify??

The unary plus operator returns the value of an expression.  Neither
the unary plus nor unary minus operators produce lvalues and is of
limited use.

	\Steve
-
: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux