linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vamsi <krishna.vamsi@wipro.com>
To: "Joel M. Pareja" <jpareja@infoweapons.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Significance of using + before function calls.
Date: Wed, 15 Mar 2006 19:10:01 +0530	[thread overview]
Message-ID: <44181931.8000507@wipro.com> (raw)
In-Reply-To: <4417C957.7000205@infoweapons.com>


Joel M. Pareja wrote:

> The placement of '+' or '-' before the function call is performing a
> unary operator on the return value of the function.

does it server any purpose ? , unary '+'  operator will not have any 
significance effect on the return value

-Vamsi

>
> Vamsi 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??
>>
>> Thank You.
>>
>> -Vamsi
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-c-programming" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


  reply	other threads:[~2006-03-15 13:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15 12:59 Significance of using + before function calls Vamsi
2006-03-15  7:51 ` Steve Graegert
2006-03-15  7:58   ` Per Jessen
2006-03-15 12:11     ` Steve Graegert
2006-03-15  7:59 ` Joel M. Pareja
2006-03-15 13:40   ` Vamsi [this message]
2006-03-15  8:16     ` Joel M. Pareja
2006-03-15 10:09 ` Glynn Clements
2006-03-15 15:48   ` Vamsi
2006-03-15 20:34 ` Tomas Janousek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44181931.8000507@wipro.com \
    --to=krishna.vamsi@wipro.com \
    --cc=jpareja@infoweapons.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).