C does not evaluate arguments from right to left.
In fact, the order of evaluation is explicitly labeled implementation-defined. That means C is free to use whatever order it feels like. You might get one result now, but a different one tomorrow. You should consider the output of this program to be unpredictable.
It's nothing to do with portability. Instead, the rule is that since the order of evaluation is undefined then referring to an variable twice can produce indeterminant results of one or more of the references change the value of the variable.
@hype261
The compiler is not required to evaluate the operators the same way every time, even if you don't change the expression. Apparently inconsequential changes to the expression or the command line switches might cause the optimizer to do the preincrements in a different order.
@donbock
i m actually finding the concept of this finding the output of an programe
there are four options ,,, one of the option is 4 3
& second one is ans vary from one compiller to other compiller..
in a book ans is given 4 3
but u suggest the ans vary from one compiller to other
so i m in coonfused....
hi..i am trying to make a login page and i am using access
table..
when the user enters his userid and password i want to
check the password from the table..
if any user with the userID that is...
Hi
I have an XSL stylesheet:
<xsl:for-each select="TRACKS/TRACK">
<tr class="TDL">
<td width="90%"><xsl:number value="position()" format="1" /> -
<xsl:value-of select="TRACKTITLE"/></td>...
Hi
Sorry bout this basic prob. Got a file called file.obj. tryna read the first
line from it as a string and print it to the screen. getting errors:
#include "stdafx.h"
#include <stdio.h>...
Hello all:
We have a table with about 2400 cells. Our requirement is to highlight
the cells in the table whose data has changed, every 5 seconds. Our
script behaves relatively ok in Firefox, but...
Hi everyone.
I'm attempting to write a Javascript that will create a form within a
brand-new document in a specific frame of a frameset. The problem is
that I can create the form and input...
hi,
i like to solve a code-prob:
tidy is bitching about
<...> proprietary attribute "type"
<...> lacks "action" attribute
how can i make this nice?
this is my code
i m new to the C world...
i ve been told by my instructors not to use goto stmt..
but no one could give me a satisfactory answer as to why it is so..
plz help me out of this dilemma, coz i use...
I'm making for fun a simple program which format a input file.Input file sustain of
person name,lastname and date of birth.Output file si supposed to be forammted as following:
NAME ...
Can anybody help me to resolve this prob.
i have installed Visual Studio 2005 Professional edition. I am working in VB.Net. When I tried to connect to database it is connected but when i make some...
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...