If Obama Were A Programmer His Campaign Slogan Would Be…

by Alan Skorkin on September 27, 2008

If Obama Were A Programmer

Original picture courtesy of thehollywoodgossip.com

{ 3 comments… read them below or add one }

Ajay September 27, 2008 at 4:29 pm

you are such a geek!!!!

Reply

Recovering UCB grad October 4, 2008 at 10:45 am

With that code, obama will never become president!

You have to pass in the address of “i” in the function voteFor(). Otherwise, “i” will never change. (unless we are talking about a multi-threaded system here with shared memory.

(yes, i know, a big geek)

Reply

bearded_oneder June 18, 2010 at 11:19 am

*Agrees* with “Recovering UCB grad”. I must be passed by reference. Otherwise, it will never change.

Reply

Leave a Comment

Previous post:

Next post: