Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
logical_operators
- Page 1
The Rise of AI Scams: Deciphering Reality in a World of Deepfakes
Community Center
4 Weeks Ago
by Johannes C.
**Discover the world of AI scams and find out how you can shield yourself against the cunning deceptions of deepfakes.** ![deepfakes-deep-implications.jpg](https://static.daniweb.com/attachments/4/782a49e1fa4e86bd0bedf3957bec4df9.jpg) In an incident that underscores the alarming capabilities of artificial intelligence in the realm of fraud, a…
AI-powered Code Reviews: The Future of Collaborative Development
Programming
3 Weeks Ago
by SEO_935
AI-powered code reviews are bringing about a revolution in the way developers collaborate, enabling more efficient, accurate, and thorough evaluations of code prior to its integration into the central project repository. This transformation is made possible by leveraging machine learning and artificial intelligence to automate and enhance different…
Re: Is Coding About Authoring or Achieving a Specification?
Programming
1 Month Ago
by Reverend Jim
As an example, here is some code we got from a vendor. It is rock-solid. It does what it is supposed to but it is virtually unmaintainable. I can't begin to imagine how it was ever debugged. SUBROUTINE READALL(UNIT,BUFF,*,*,IFIRST) C*TTL READALL READ FROM ANYTHING C THIS SUBROUTINE IS USED FOR READING COMPRESSED OR …
Re: How can I make my website easier to use?
Programming
Web Development
2 Months Ago
by clickempire
**These techniques are help you:** **Intuitive Navigation:** Design a clear and logical navigation menu with descriptive labels. Keep the menu structure simple and easy to understand. **Responsive design:** Make sure the website is responsive, providing a seamless experience on different devices. Test and optimize for desktops, tablets …
Logical Operator Confusion
Programming
Software Development
10 Years Ago
by DeadH34d
I've been reading through this introductory book on Python, and I've been following along fairly well. Compared to C++, Python seems to make more sense to me. That is, until I reached a section on Logical Operators. I don't completely understand what I just typed in to IDLE, and the results that were returned. Here's what I read: Python …
Logical operators to perform Operations in SAP HANA
Programming
Databases
4 Years Ago
by karansingh
I am facing issues using logical operators to perform operations in SAP HANA. Can anyone help me?
How to add data (logical operator) recursively in a binary tree
Programming
Software Development
12 Years Ago
by jkembo
I am stuck, I know how binary tree works, but I don't have any clue how to add data recursively in a binary tree. The user needs to enter a formula with logical operators. If the user presses to a button e.g NOT(unary operator), then it should display at follow : NOT(...) Then instead of the 3 dots the user can enter manually a letter "b&…
Re: difference between bitwise and logical operators
Programming
Software Development
11 Years Ago
by CPT
someone correct me if I'm wrong: both bitwise and logical operators are the representation of the boolean function with the same names(better read on that first as I suspect the fact that you haven't) the diference is that the bitwise ones operate on bits(it doesn't matter if your data type has 8,16,32 or 64 bits, the operation is applied to every …
Diff b/w logical operators and bitwise operators...?
Programming
Software Development
15 Years Ago
by web_master
i know how we can use logical operators.....but how do we use bitwise operators.....
Re: difference between bitwise and logical operators
Programming
Software Development
11 Years Ago
by GeekTool
>>hello everyone, Whats the difference when your using bitwise operators and logical operators in a conditional statements? Bitwise Example: if ((val==1)|(val==2)) printf("%d\n",val); else printf("False"); Logical Example: if ((val==1)||(val==2)) printf("%d\n",val); else …
Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
13 Years Ago
by ceatkin2
I am trying to demonstrate to my class mates the run time difference in using bit-wise and logical operators. I chose to do this by writing a simple (I thought) program that reads 2 ints from the console, and multiplies them two separate times, one using the logical multiply (a * b) and one using a shift-add algorithm. However, I am stumped in …
Re: difference between bitwise and logical operators
Programming
Software Development
11 Years Ago
by JamesCherrill
^ basically right, except that nowhere does Java define any mapping between 0 and 1s vs the boolean values false/true. Bitwize operators work on each bit of an int value, the logical operators work on individual boolean true/false values, but there's no connection between these two versions.
difference between bitwise and logical operators
Programming
Software Development
11 Years Ago
by GeekTool
>> I googled the dinference between bitwise and logical operators, but i could not understand exactl what it is. Can you simply explain ?
Beginner's Tutorial on Operators
Programming
Software Development
10 Years Ago
by Learner010
# Tutorial On Operators# *Operators are the signs to the tell the compiler to perform specific task*. The Operators fall into following categories :- Arithmatic Operator Relational Operator Logical Operator Bitwise Operator Miscellaneous Operator(i added Assignment Operators in this categeory) **Arithmatic operators:-** …
Re: Bitwise and Logical Operators
Programming
Software Development
11 Years Ago
by TrustyTony
pre increment is done before actual execution in surrounding statement, it is done by putting the two plusses before the statement. If the operation is bitwise, the increment happens in every case and age is allways increased by one. But here with shortcutting kind logical operators, the value of age would only happen if birthday is set: …
Re: Bitwise and Logical Operators
Programming
Software Development
11 Years Ago
by GeekTool
> pre increment is done before actual execution in surrounding statement, it is done by putting the two plusses before the statement. If the operation is bitwise, the increment happens in every case and age is allways increased by one. But here with shortcutting kind logical operators, the value of age would only happen if birthday is set: &…
Logical Operator help
Programming
Software Development
18 Years Ago
by asatrujesus
Im reading about logical operators (yes noob here) and Im sort of confused as to what some of them actually mean. Example: if b1 is true and b2 is false !(b1 & b2) is true b1 | b2 is true b1 & b2 is false b1 ^ b2 is true i know that: & is AND | is OR ! is NOT ^ is XOR But the question is what do the above …
Re: Logical Operator help
Programming
Software Development
18 Years Ago
by freesoft_2000
Hi everyone, See the below two links [url]http://www.cafeaulait.org/course/week2/45.html[/url] [url]http://www.sap-img.com/java/java-boolean-logical-operators.htm[/url] I hoped that helped you Yours Sincerely Richard West
need some help in java operators.
Programming
Software Development
12 Years Ago
by Johnstep
Hi guys, I need some help in this exercises here are the given problems. A. Create a program using arithmetic operators. Use JOptionPane for input of any four variables. B. Create a program using relational operators. Use java.util scanner for input of any three variables. C.Create a program using Logical operators. Use Scanner and for …
Bitwise operators/ undefined and implementation-defined?
Programming
Software Development
17 Years Ago
by JoBe
Hello ladies and gents, Gotta few questions if you don't mind: 1) Exc_6_4) Wrote a table of values for the bitwise logical operators and was wondering if any of you could check them out whether they are correct this way. 2) I have to write five examples of undefined behaviour and five examples of implementation-defined behaviour. I'm I …
Re: logical operator overloading
Programming
Software Development
14 Years Ago
by bluebird
[QUOTE=bluebird;891569]Hello everybody! Please help me.[/QUOTE] Sorry! It is just a mistake. I want to know how to overload the logical operators !, && and ||. I have to do assignment regarding operator overloading and I have written other operators except that 3 operators. Please show me an example. I have to do right now. So …
Re: Logical OR AND and NOT
Programming
Software Development
12 Years Ago
by jimmymack
The above questions are from a quiz on a programming site I am stuck on. Phorce I don't have to write them out in code. rubberman thanks thats useful and helps me understand logical operators better. But it's the answers to the above questions or quiz I don't understand that I really need explaining or breaking down. The answers are bellow:…
Re: Bitwise operators
Programming
Software Development
13 Years Ago
by imolorhe
i understand how and when to use the logical operators, I read about the bitwise operators, but i saw a question that had to do with on and off switches and the solution contained bitwise operators which, from what i have read about it, has to do basically with binary numbers, and not with on and off devices. The question i saw is: [I] The …
Re: C++ OR logical operator with char values
Programming
Software Development
13 Years Ago
by Fbody
You can not compare more than 1 value in a particular comparison statement. You use the logical operators to combine multiple comparisons to produce a net result. [U]not legal:[/U] [INDENT]if (aValue == 1 || 2) if (1 < aValue < 4)[/INDENT] [U]legal:[/U] [INDENT]if (aValue == 1 || aValue == 2) if (1 < aValue && …
Need code in VC++
Programming
Software Development
9 Years Ago
by Avdhesh_1
Question1. Your task is to complete the program provided by providing the three missing classes, Minus, Times and Divide. Next, you should extend the program so that it supports relational, logical and conditional expression operators as defined by the following extension to the grammar: <exp> -> '(' <operand> <op> <operand&…
Re: precedence
Programming
Software Development
10 Years Ago
by deceptikon
> Is it in case of logical operators only or every binary operator?? I could have sworn I clearly said "the **logical** operators are short circuiting". If other operators had that behavior, I would have mentioned it. So yes, it's only in the case of logical operators (`&&` and `||`). Technically the conditional operator …
Re: help with nested if-else !
Programming
Software Development
14 Years Ago
by VernonDozier
[QUOTE=sfuo;1017811]He said you can't use any logical operators.[/QUOTE] These aren't logical operators. These are the nested-if equivalent to logical operators, but in the alternative code, neither || nor && is used in the code.
Re: Negatif An Positif C++ (Help)
Programming
Software Development
8 Years Ago
by zelrick
Hello Sara 13; Since the topic was related with logical operators and if else statement. I suggest doing this. Soon you can do it with Loop. But for now I only use else if statement with logical operators. And for a readable output put white blanks before and after " ". I hope this help you; Cheers; PS: This code have limitation; Like…
DeMorgansLaw.java (i need a help)
Programming
Software Development
11 Years Ago
by student_2012
De Morgan’s Laws. We have discussed the logical operators &&, ||, ^ and !. De Morgan’s Laws can sometimes make it more convenient for us to express a logical expression. These laws state that the expression !(condition1 && condition2) is logically equivalent to the expression (!condition1 || !condition2). Also, the expression !(…
Homework Help for C++ Beginner -- I've tried and tried, and can't figure it out!!
Programming
Software Development
19 Years Ago
by trixiestrat
I got this assignment for school. I figured out most of it, but one part is really stumping me. The assignment tells you to have the user enter in a dollar amount between $0 and $100, and to give an error message if it's out of the range. I figured all this out after a LOT of trial and error. Here's what I have so far: #include <iostream>…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC