Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > effect of b = a++ + a++

Reply
Thread Tools

effect of b = a++ + a++

 
 
MisterE
Guest
Posts: n/a
 
      01-25-2008

"Ravi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> what is the effect of fllowing code n values of a and b
> b = 0;
> a = 1;
> b = a++ + a++;


just do b=a+a; a+=2; and stop being a **** head


 
Reply With Quote
 
 
 
 
santosh
Guest
Posts: n/a
 
      01-25-2008
MisterE wrote:

>
> "Ravi" <(E-Mail Removed)> wrote in message
>

news:(E-Mail Removed)...
>> what is the effect of fllowing code n values of a and b
>> b = 0;
>> a = 1;
>> b = a++ + a++;

>
> just do b=a+a; a+=2; and stop being a **** head


Neither will do what the OP's code does, simply because the OP code is
undefined.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
switchport effect Gary Cisco 2 12-17-2005 04:24 AM
How does SAA effect Cisco router ? anti00@poczta.onet.pl Cisco 2 09-22-2005 03:44 PM
s/// has apparent side effect on grep() John E. Jardine Perl 2 04-13-2004 08:45 PM
[Vb.net question] how to apply online update function into program (the effect just like Norton system work live update) chan ASP .Net 1 03-04-2004 02:58 PM
Re: Flickering effect SEWilson ASP .Net 0 08-23-2003 03:59 AM



Advertisments