#1
The following pair of statements appear on successive lines in a C program. Rewrite them as a single statement WITHOUT using any brackets.

x++;

x = x*x + 1;


I have no idea how to do this and I have 7 minutes to do it
#2
crap, calling all people with maths skill! *calling*

I'm useless sorry! .

"Save The Cheerleader, Save The World"
- Hiro Nakamura
DANK MEMES
#4
Gods, I hope I remember this right...

x = ++x*x + 1;

EDIT: Meh.
I'm a communist. Really.
#5
Quote by Jawkster
crap, calling all people with maths skill! *calling*

I'm useless sorry! .

"Save The Cheerleader, Save The World"
- Hiro Nakamura


lol you just wanted to get the heroes reference in another thread didn't you
Quote by Virgil_Hart05
Beating the elderly is a big favourite of mine. Also, pushing kids over and kicking pregnant women in the womb is fun.



Right now we're called 'Various Artists' just to fuck over people with iPods
#6
Quote by kanguuu
lol you just wanted to get the heroes reference in another thread didn't you


you're just stalking all my posts now aren't you? .
DANK MEMES
#7
Quote by Jawkster
you're just stalking all my posts now aren't you? .



I will not accept these accusations until i see proof, god damnit!
Quote by Virgil_Hart05
Beating the elderly is a big favourite of mine. Also, pushing kids over and kicking pregnant women in the womb is fun.



Right now we're called 'Various Artists' just to fuck over people with iPods
#8
x = ++x*x +1; ?
Last edited by laodikea at Oct 24, 2007,
#10
x = x*x +2;

no?


EDIT: excuse me, totally wrong...
Quote by scottishmob

This is a site for musicians and you're all crying about the sad state of rock? Fuck that. I'm going to practice more and take over radio. I advise you all to do the same.
Last edited by frantix at Oct 24, 2007,
#11
Quote by Gaz_m2k5
double

Do you know if I'm right, by the way? I haven't done C since I was a 14 year old geek.
I'm a communist. Really.