473,387 Members | 1,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Doing both functions in &&

Is it defined in the standard that when evaluating && that if the
first operand is false it doesn't bother operating the other ?
Ditto ||

Apr 13 '07 #1
3 1552
Ev********@googlemail.com wrote:
Is it defined in the standard that when evaluating && that if the
first operand is false it doesn't bother operating the other ?
Ditto ||
Yes.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 13 '07 #2
Ev********@googlemail.com wrote:
Is it defined in the standard that when evaluating && that if the
first operand is false it doesn't bother operating the other ?
Yes, it's called short-circuit evaluation.
Ditto ||
Well, something similar. If the first operand is true, it doesn't
bother with the second.


Brian

Apr 13 '07 #3
"Victor Bazarov" <v.********@comAcast.netwrote in news:evorvm$9t$1
@news.datemas.de:
Ev********@googlemail.com wrote:
>Is it defined in the standard that when evaluating && that if the
first operand is false it doesn't bother operating the other ?
Ditto ||

Yes.
Unless operator&& is a user-defined operator. (I know, doesn't help for
basic types....)
Apr 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Da Costa Gomez | last post by:
Hi all, I've been eluded the last couple of *days* on the onload mystery within the frame and function context. Problem is as follows: - frameset with two frames. One called scripts and the...
2
by: Vic Y | last post by:
Hi, I am trying to call a user defined function(UDF) from a stored proc, using a default parameter in the called UDF (e.g. @bid_price_type int = 0 ). However the calling stored proc complains...
3
by: Paul Reddin | last post by:
Hi, V8.1 fp4a We have been performing some performance measurements on SQL functions and have observed the following and need to verify if this is expected behaviour. Our SQL Functions...
7
by: PaulR | last post by:
Hi, We have several inter-related SQL Table Functions, which all optimise fine on their own and most of the time together. However, increasingly as we are adding logic and making their logic...
2
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking afterwards with ILDASM at what is visible in those assemblies from a...
9
by: Marek Vondrak | last post by:
Hello. I have written the following program and am curious why it prints "1" "2". What are the exact effects of explicitly providing function template parameters at the call? Is the second...
10
by: varusnyc | last post by:
Hello, I seem to be having a newbie problem with writng a simple program consisting of 3 functions. Here is what's being asked of me: Your main function should call the function printMyName which...
2
by: babaco | last post by:
Hi, I've come upon a situation where I don't understand what's happening. Basically, I'm implementing a kind of 'chain of responsibility' using some covariant types: #include <iostream>...
5
by: beginner | last post by:
Hi All, It is really convenient to use nested functions and lambda expressions. What I'd like to know is if Python compiles fn_inner() only once and change the binding of v every time fn_outer()...
2
by: shatemo5 | last post by:
Hi, I'm new in C++ programimng :( & I have a couple of questions to ask about :- 1- I have to build 5 clases & in each one I have to overide the opretaros new & delete ...so in each time I call...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
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...
0
by: Hystou | last post by:
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...
0
jinu1996
by: jinu1996 | last post by:
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.