Toggle Navigation
Home
Forums
All Forums
Forums
Gaming Forums
GTA V
Call Of Duty Classics
Fortnite
Upcoming Games
Popular & Classic Games
Hot & Latest
Hot Posts
Latest Posts
Latest Comments
General Forums
Announcements
General Discussion
Site & Forum Help
Introductions
Media & Designs
Games
All Games
Popular Games
Call of Duty: Black Ops 3
Grand Theft Auto V
Call of Duty: Infinite Warfa...
Fortnite
Call of Duty: Black Ops 4
Red Dead Redemption 2
Pokemon Go
Latest Games
Assassin's Creed Infinity
Grand Theft Auto 6
Assassin's Creed Hexe
Star Wars Knights of the Old...
Indiana Jones
Articles
Mods
Videos
Glitches
Login / Register
Already registered?
Login
Can't login?
Reset Password
New here?
Register
Sign in with Discord
Sign in with Twitter
Sign in with
G
o
o
g
l
e
Home
Forums
Gaming Forums
GTA V
Call Of Duty Classics
Fortnite
Upcoming Games
Popular & Classic Games
Hot & Latest
Hot Posts
Latest Posts
Latest Comments
General Forums
Announcements
General Discussion
Site & Forum Help
Introductions
Media & Designs
Games
All Games
Popular Games
Call of Duty: Black Ops 3
Grand Theft Auto V
Call of Duty: Infinite Warfa...
Fortnite
Call of Duty: Black Ops 4
Red Dead Redemption 2
Pokemon Go
Latest Games
Assassin's Creed Infinity
Grand Theft Auto 6
Assassin's Creed Hexe
Star Wars Knights of the Old...
Indiana Jones
Articles
Mods
Videos
Glitches
Login / Register
Sign in
Sign in with Discord
Sign in with Twitter
Sign in with
G
o
o
g
l
e
Can't login?
Reset Password
New here?
Register
Forums
/
Tech Boards
/
Computer Programming
/
Math statement help (JAVA)
Post:
Math statement help (JAVA)
Like
Follow
Options
Search
Sharing
Share via Twitter
09-29-2013, 08:11 PM
#1
Luffy*
i'M NoT goNNa LiE
632
Posts
1,500
Reputation
0
Credits
Premium
Aug 2010
NextGenUpdate
(adsbygoogle = window.adsbygoogle || []).push({});
I'm practicing for my midterm, and I can't figure out what I'm doing wrong here:
Let A = 6. What is the value of B after the statement B = A + A + (A++) * 2.
The answer is 24, but I got 26 when I did it.
And also:
Let A = 2.
B = A++ + ++A + A * 2
(adsbygoogle = window.adsbygoogle || []).push({});
09-29-2013, 08:17 PM
#2
Luffy*
i'M NoT goNNa LiE
632
Posts
1,500
Reputation
0
Credits
Premium
Aug 2010
NextGenUpdate
Alright, I figured out the first one. A is incremented after the expression, so A would = 7, and B would = 24.
09-29-2013, 08:27 PM
#3
Luffy*
i'M NoT goNNa LiE
632
Posts
1,500
Reputation
0
Credits
Premium
Aug 2010
NextGenUpdate
Problem figured out. Close thread please.
Copyright © 2026, NextGenUpdate.
All Rights Reserved.
Website Staff
Privacy Policy
Terms of Service
Top