i came a few program that has a simple statement, something like:
(x,y);
whatever does that line do?
[Resolved]: anyone know what does (x,y) do?
Moderator: Board moderators
-
- Experienced poster
- Posts: 147
- Joined: Fri Jun 13, 2003 10:46 pm
[Resolved]: anyone know what does (x,y) do?
Last edited by bugzpodder on Mon Jul 28, 2003 4:53 pm, edited 1 time in total.
-
- Experienced poster
- Posts: 145
- Joined: Sat Feb 23, 2002 2:00 am
- Location: Paris, France
- Contact:
-
- New poster
- Posts: 22
- Joined: Sun Oct 20, 2002 6:41 pm
- Location: Lithuania
- Contact:
This might shed some light on comma operators: http://tinyurl.com/hkym
And code example is:
[cpp]
char* x = (char*) -1;
if( x = 0, delete x++, (int)x )
{
// do something
}
[/cpp]
Now this is called 'readable' code...
And code example is:
[cpp]
char* x = (char*) -1;
if( x = 0, delete x++, (int)x )
{
// do something
}
[/cpp]
Now this is called 'readable' code...
-
- Experienced poster
- Posts: 147
- Joined: Fri Jun 13, 2003 10:46 pm