Can you tell the value of a, b and c?
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
Building an expression tree is a sophomore level task that is not worthy of being performed here :p
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
I really can't belive you don't know the answer. I suggest you take the homework to your mommy or class tutor.
Software Kinetics (requires SL3 beta) - Moving software
-
Building an expression tree is a sophomore level task that is not worthy of being performed here :p
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
Now that is funny :)
Software Kinetics (requires SL3 beta) - Moving software
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
d
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
Not at a glance, but I can tell you what the disposition would be of the programmer if he worked for me.
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
42, 42 and 42
Todd Smith
-
harold aptroot wrote:
Wouldn't that be implementation dependent?
I don't see anything where the behaviour is undefined in the C++ specification.
-
Not at a glance, but I can tell you what the disposition would be of the programmer if he worked for me.
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
define(x, y)
-
Building an expression tree is a sophomore level task that is not worthy of being performed here :p
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
:thumbsup:
-
dan neely wrote:
Mr Sore Bottom
GreyFace! :mad:
-
harold aptroot wrote:
Wouldn't that be implementation dependent?
I don't see anything where the behaviour is undefined in the C++ specification.
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
Tough crowd, eh? :)
-- Kein Mitleid Für Die Mehrheit
-
Tough crowd, eh? :)
-- Kein Mitleid Für Die Mehrheit
:laugh:
-
int a, b, c((3, a) = (0?(a=6):(b=7), (a << b >> a), b = 5));
Of course without using your favourite C++ debugger ;)
Stop using your head. Start using your computer. What's it for, anyway?