[mod-- This is a FAQ:
<http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.15> -- 
mod PN]

Hi all....
 
consider the following code
 
 int arr[]={1,2,3,4,5};
 int* ptr=arr;
 cout<<++*ptr<<*ptr++<<(*ptr)++<<*++ptr<<++*ptr++<<endl;
 
Output on DEV CPP 4.9.9.2
 
22234


Output on MS Visual C++ 2008 Express Edition
version 9.0.30720.1 sp1
 
54352

--------------
 
Which one is wrong and why....?
If both are true than why  it happens..?
 
Regards,
Asad Abbas,
Pakistan.




[Non-text portions of this message have been removed]

Reply via email to