|
Submitted By :
Ritesh Tijoriwala
(Member Since : 6/13/2004 1:49:49 AM)
|
|
|
Job Description :
job - Eat Computers, Drink Computers , Sleep Computers...
hobby - read, Cricket, tennis... |
View all (2) submissions by this author
(Birth Date : 10/10/1980 ) |
|
|
C++ Compiler Trap,
Indeterminism in function argument evaluation
|
Total Hit (6100) |
«code LangId=1»int i=0;
printf("%d %d %d %d", i++, i==1, i, ++i);«/code»
Its giving this output:
On Sun Solaris 8:
0 1 2 2
On Linux:
1 1 1 1
On Windows:
0 1 1 2
Some thoughts:
Incr/decr ops have side effect so arg list values are undefined in this case. It's an excellent example of
....Read More |
Rating
|
|
|
Windows Forms Drop Shadow
|
Total Hit (16336) |
«code LangId=3»public class Form1 : Form
{
private const int CS_DROPSHADOW = 0x00020000;
public Form1()
{
InitializeComponent();
}
protected override CreateParams CreateParams
{
get
{
....Read More |
Rating
|
|
|