Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 11th, 2011, 3:14 AM   #11
macteki
Professional Programmer
 
Join Date: Jul 2011
Posts: 437
Rep Power: 3 macteki will become famous soon enough
Re: The increment operator with parentheses

Quote:
Originally Posted by Rashakil View Post
That's an insane way of coding, a preferred way would be
z = x - x * y;
x ++;

Yes, this is much better.
__________________
API belongs to public. Knowledge belongs to yourself

http://java.macteki.com
macteki is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Increment displayed record fields with button bwhitejr Delphi 1 Dec 27th, 2010 1:19 PM
c# increment and decrement counter nikiarora C# 5 Sep 4th, 2009 5:37 PM
Increment operator help akashj87 Java 12 May 31st, 2009 12:30 PM
What the parentheses do 357mag C++ 7 Jun 5th, 2007 4:34 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:32 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC