answersLogoWhite

0


Best Answer

Yes, it does.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Does C allows you to use equality operators to compare strings?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are the advantages of operator overoloading in c plus plus?

Operator overloading allows you to redefine the functionality of most of the operators, such as + and -. This allows you to create a class that can naturally mimic a native object, such as an integer. Consider a complex number class. Clearly, you would want to overload the basic mathematical operations add, subtract, multiply, and divide, so that a user of your class code could write expressions involving complex numbers without having to think about the implementation details of your class. In the case of other types of classes, for instance a stack class, the meaning of the operators needs to be carefully considered, but it might make sense, for instance, to write a stack push operation as a unary plus, and a pop operation as a unary minus. Certainly, you don't want to go crazy overloading operators just because you can - you want the resulting code to be sensible and readable.


What operators in C were modeled on similar operators in ALGOL 68?

The short answer is probably these C operators +=, -=, *=, /= * %= are from Algol68′s +:=, -:=, *:=, /:= & %:=. c.f. usenet: Ada and C and Algol 68 BTW: The best quote about C's ancestry comes from Dennis Ritchie himself: "The scheme of type composition adopted by C owes considerable debt to Algol 68, although it did not, perhaps, emerge in a form that Algol's adherents would approve of. The central notion I captured from Algol was a type structure based on atomic types (including structures), composed into arrays, pointers (references), and functions (procedures). Algol 68′s concept of unions and casts also had an influence that appeared later." Apr 1993 c.f. Dennis Ritchie (April 1993). "The Development of the C Language" (PDF) Note that the /= and /:= are subtly different. Also C's %= is the same as Algol's %*:= operator. Note also that the majority of C's operators came from Algol (+ - * / = ≠ etc ). However the "%" operator is notability different. * Wikipedia: Monadic_operators * Wikipedia: Dyadic_operators_with_associated_priorities C has the "return" and "sizeof" operator, whereas Algol68 has syntax "EXIT" (or "□") and operator "UPB" (or "⌈") that achieve a similar function. Algol 68 also has some related constants: "max int", "max real", "int width", "real width" etc to determine sizes of things. These are not the same a C's sizeof, but similar. The most peculiar operators of C's are /\ & \/, these come from Algol's ∧ & ∨ operators. These "C originals" were replaced by the current && and operators. c.f. What _did_ the C operators /\ and \/ do? Algol68 further allows operators to be define using non-ASCII characters: ×, ÷, ≤, ≥, ¬, ∨, ∧, , ↓, ↑, ⌊, ⌈, ⎩, ⎧ and ⊥; And used the characters →, ○, □, ␣ and ¢ for other purposes. It is kind of like Algol68 was taking the liberty of using unicode some 20 years before Unicode characters were defined. {Earlier Algol60 used non-ASCII ⊂ and ≡} * C's: int i = b ? a : b; /* pick maximum */ * A68′s: INT i := ( a > b | a | b ); c.f. Wikipedia: ?: - a ternary operator The assignment ":=" looks like an operator, but in terms of "Algol68″ OPerators it isn't. I believe they are called "Units associated with names" c.f. Array, Procedure, Dereference and coercion operations (Or - if you are a language lawyer c.f. Algol 68 r1 report.html#52) Similarly: Left assign, right assign and compare ( :=, =:, =) are also not "Algol68" Operators. Pointers are not operators per se. There are a few "identity relations" associated with pointers: e.g. :=:, :/=:, IS & ISNT c.f. Assignation and identity relations etc. (Or - if you are a language lawyer c.f. Algol 68 r1 report.html#5221)


Why do we have different type data types in computer languages?

Allows you to efficiently store data without waste Allows you to write your application code without re-implementing standard data types Allows code and subroutine parameters to be more expressive


Is C plus plus a procedural or object oriented language?

There are quite a lot of operators in C and C++, here are the basic ones:&& - AND- OR! - NOT^ - XOR= - Assign== - Equal to!= - Not Equal to+ - Add- - Subtract* - Multiply/ - Divide% - Modulo< - Less than> - More than= - More than or equal to


What are the importance of using standard units in measurements?

# Units allows use to compare quatities that are not in the same space, place or time # units also indicates the physics quantities measured or been measure as each quantities has particlar units

Related questions

What character allows you to concatenate strings in PHP?

To concatenate strings in PHP, you use the . (dot) character. For example: $str = "String1" . "String2";


Where can I compare prices on a new 55 inch TV.?

try www.nextag.com its an easy to use site that allows you to compare pricing for various televisions. It allows you to compare pricing for 55 inch televisions.


What type of fibers are guitar strings made out of?

Classical guitar strings are mainly made out of nylon. Different thickness of the strings allows for differences in tension. Today, string makers are also experimenting with a mixture of carbon and nylon which allows for thinner strings and adds more clarity to the tone. Carbon strings tend to be brighter in tone than the pure nylon strings. Bass strings (lower three strings in a set) have the same nylon core, but they are additionally wrapped with a silver-plated coper wire. Electric guitar strings use the similar process, but with steel instead of nylon. There is a great video on Discovery/Science channel website ("How it's made") that shows the entire process of making steel strings for guitar.


What information does a line chart compare?

It allows you to visualize and compare trends of data over intervals of time.


What is the best website that allows me to search and compare prices and features of trucks?

Consumers Reports offers a site that allows users to compare prices and features of trucks. There is a free and paid version of this site.


Where can I compare Kodac digital cameras?

Bestbuy.com allows you to compare all the kodak cameras that they offer. You can also go directly to the kodak website and compare their cameras.


What type of graph allows you to compare length or distance?

a port-a-graph


What is a suffix tree?

A suffix tree is a data structure that stores all the suffixes of a given string in a way that allows for efficient pattern matching and substring search operations. It is commonly used in string processing algorithms like finding repeated substrings, longest common substrings, and pattern matching.


Which of these measurements allows scientists to compare the brightness of stars?

Absolute Magnitude


Where can I compare all of the cell phones by Motorola?

CNET.com allows you to compare different Motorola cell phone models. You can also check our Motorola.com to compare only their cell phone models


What properties of equality allows 7x - 1 to equal 7x - 7?

None. 7x - 1 is not equal to 7x - 7.


Where can one download the software Beyond Compare?

One may download the software Beyond Compare at the website of software developers Scooter Software. Beyond Compare is a functional Windows tool that allows the user to compare files closely.