The document summarizes Ruby operators including arithmetic, comparison, assignment, logical, bitwise, range, ternary and defined? operators. It provides examples of common operators like addition, subtraction, logical AND, assignment, range inclusion and method definition checking. Operators in Ruby are generally method calls that allow succinct operation on operands.
The document describes the different types of operators in C language including arithmetic, relational, logical, bitwise, assignment, and other operators. It provides examples of each operator and explains their functions such as adding, subtracting, comparing, assigning values, and more. C language contains a rich set of built-in operators that allow various mathematical, logical, and bitwise operations to be performed.
Python tutorials for beginners | IQ Online TrainingRahul Tandale
Python training program walks you through basics of python language and gives you in-depth knowledge of function,collections,REs,Exception Handing,
Socket programming and OOP basics.The course also explains object-oriented as well as functional programming techniques,error handling,packaging system and network programming.The course curriculum is designed for developer,system administrators and QA engineers.
This program also covers many of python extensions(libraries)as well as best practices
This document summarizes common operators in programming languages. It describes arithmetic, comparison, assignment, logical, bitwise, and membership operators. For each type of operator, it provides examples of common operators like addition, subtraction, equality, assignment, AND, OR, and examples of their usage. The document is intended as an introduction to different types of operators that can manipulate and compare values in programming.
This document discusses operators in VB.NET. It defines operators as symbols that perform operations on variables or values. It describes different types of operators such as arithmetic, comparison, logical, bitwise, and assignment operators. It provides examples of common operators like addition, subtraction, equality checks and AND/OR logic. The document also covers operator precedence and how it determines the order of operations.
Operators are symbols that tell the compiler to perform mathematical or logical functions. There are different types of operators including arithmetic, relational, logical, assignment, increment/decrement, ternary, and bitwise. Operators have precedence rules where those in parentheses are evaluated first, then multiplication/division, followed by addition/subtraction from left to right. Common operators include arithmetic operators like addition and subtraction, relational operators like equal and not equal, logical operators like AND and OR, and assignment operators like addition assignment and subtraction assignment.
The document discusses various operators in Python including arithmetic, comparison, bitwise, logical, and membership operators. It provides examples of using each operator and explains their functionality. The key types of operators covered are arithmetic (e.g. +, -, *, /), comparison (e.g. ==, !=, >, <), bitwise (e.g. &, |, ^), logical (e.g. and, or, not), and membership (e.g. in, not in) operators. It also discusses operator precedence and provides examples of expressions using different operators.
This document discusses operators in C# programming. It defines operators as symbols that tell the compiler to perform mathematical or logical manipulations. The document then covers various types of operators in C#, including arithmetic, relational, logical, bitwise, and assignment operators. It provides examples of each operator and explains their functionality and usage.
Operators in C and C++ Programming Language:
Operators are the symbols which tells the language compiler to perform a specific mathematical or logical function. C and C++ programming is very rich in Operators. C and C++ Language Provides the following type of Operator:-
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Bitwise Operators
5. Assignment Operators
6. Misc Operators
You will Study all these operators with these Slides. Hope you will find it helpful. If you find it helpful then please Let others know by Like and Sharing. If you don't like so please let us know. So that i can make it more better.
If you have to ask anything about any operator then you can ask in comments.
Thankyou for visit
Sahyog Vishwakarma
This document provides an overview of constructors and destructors in C++. It defines that a constructor is a member function that initializes an object when it is created, has the same name as the class, and does not have a return type. A destructor is called when an object ends its lifespan and frees any resources. An example program is given that defines a class with a constructor that sets a data member to 10 and a destructor that prints a message. The document also covers topics like classes, objects, operators, and type conversion in C++.
Operators are elements in C# that are applied to operands in expressions or statements. Unary operators take one operand, like increment (++), while binary operators take two operands, such as arithmetic operators (+, -, *, /). The conditional operator (?:) is the sole ternary operator, taking three operands. Some common operators are assignment (=), arithmetic, comparison, conditional (&&, ||), ternary (?:), and null coalescing (??). Operator precedence and associativity determine the order of evaluation in expressions with multiple operators. Parentheses can be used to override precedence.
Python interpreter and interactive mode, debugging; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence of operators, comments; Illustrative programs: exchange the values of two variables, circulate the values of n variables, distance between two points.
Operators are symbols that tell the compiler to perform mathematical, logical, or other operations on variables and constants. There are several types of operators including arithmetic, unary, assignment, relational, logical, ternary, bitwise, and shift operators. Arithmetic operators represent basic math operations like addition, subtraction, multiplication, and division. Unary operators operate on a single operand, like increment and decrement operators. Assignment operators assign values, relational operators compare values, and logical operators combine conditional tests.
Operators are symbols that represent actions or processes performed on operands. There are several types of operators including arithmetic, relational, logical, bitwise, assignment, identity, and membership operators. Arithmetic operators perform math operations, relational operators compare values, logical operators combine conditional statements, bitwise operators work with bits, assignment operators assign values, identity operators check object equality, and membership operators check if a value is contained within an object. Operators require operands as inputs to perform their defined actions and return results.
The document discusses different types of operators in Java including assignment, arithmetic, unary, equality/relational, logical, bitwise, and bit shift operators. It provides examples of how to use each type of operator and explains their precedence order when evaluating expressions. Key points covered include the different assignment operators, how arithmetic operators work with numbers and strings, truth tables for logical operators, and how bitwise operators manipulate bits.
The document discusses various types of operators in Java including assignment, arithmetic, unary, equality/relational, logical, bitwise, and bit shift operators. It provides examples of how to use each type of operator and explains their precedence order when evaluating expressions. Key points covered include the different assignment operators, how arithmetic operators work with numbers and strings, common unary operators like increment/decrement, truth tables for logical operators, and how bitwise and bit shift operators manipulate bits.
C OPERATORS
The operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C language is rich in built-in operators and provides the following types of operators:
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Assignment Operators
5. Increment and Decrement Operators
6. Conditional Operators
7. Bitwise Operators
8. Special Operators
The document discusses the different types of operators used in the C programming language, including arithmetic, relational, logical, assignment, increment/decrement, conditional, and bitwise operators. It explains what each operator does, its symbol and syntax, and provides examples of how each operator is used. Operators are symbols that allow programmers to perform mathematical, logical, or other operations on data in C programs.
This document describes different types of operators in Verilog including arithmetic, logical, relational, equality, bitwise, reduction, shift, concatenation, replication, and conditional operators. It provides examples of each operator type showing how they are used in Verilog code and what results they produce. It also lists the precedence order for operators from highest to lowest.
This document provides an overview of different types of operators in the C programming language. It discusses arithmetic, relational, logical, bitwise, assignment, conditional, and increment/decrement operators. For each type of operator, it provides examples of common operators of that type, along with brief descriptions of what they do. The document also includes truth tables for bitwise operators and discusses the syntax and usage of conditional and increment/decrement operators.
Operators are symbols that perform operations on data in programming languages. They allow programmers to manipulate variables and values to solve problems efficiently. The main types of operators include arithmetic, comparison, logical, assignment, bitwise, ternary, and sizeof operators. Operators are essential for tasks like data manipulation, control flow, efficient coding, and expressing code concisely. They provide flexibility and improve code understandability.
The document discusses different types of operators in Java including arithmetic, relational, increment/decrement, bitwise, logical, assignment, and conditional operators. It provides examples of each operator type and explains their functionality and order of precedence when used in expressions. Key operator types covered are arithmetic operators for mathematical expressions, relational operators for comparisons, logical operators for Boolean logic, and assignment operators for storing values.
Get more from www.programmingcampus.com
Operators in c programming
-definition of operator
-types of operators
1.Arithmetic operators.
2. Relational operators.
3. Logical operators.
4. Assignment operators.
5. Increment & decrement operators.
a. pre and post increment operator
b. pre and post increment operator
6. Conditional operators.
7. Bitwise operators.
8. Special operators
This document discusses different types of operators used in programming languages. It describes arithmetic operators for mathematical operations, relational operators for comparisons, logical operators for logical expressions, and increment/decrement operators. Examples are provided for each type of operator to demonstrate their usage and effects. The key information covered includes the different operator symbols and their uses in expressions and assignments.
This document defines and provides examples of different types of operators in C programming. It discusses arithmetic, relational, logical, assignment, increment/decrement, conditional, bitwise, and special operators. For each type of operator it provides the syntax, example uses, and meaning. It also gives examples to illustrate the differences between prefix and postfix increment/decrement operators.
The document discusses various operators in Verilog including unary, binary, arithmetic, logical, relational, equality, bitwise logical, shift, and ternary operators. It provides examples of how each operator works and precedence rules. Unary operators operate on a single operand, binary operators take two operands, and the ternary operator checks a condition and branches accordingly. Operator precedence is also covered, noting that parentheses can be used to override the default precedence when needed.
Operators in C and C++ Programming Language:
Operators are the symbols which tells the language compiler to perform a specific mathematical or logical function. C and C++ programming is very rich in Operators. C and C++ Language Provides the following type of Operator:-
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Bitwise Operators
5. Assignment Operators
6. Misc Operators
You will Study all these operators with these Slides. Hope you will find it helpful. If you find it helpful then please Let others know by Like and Sharing. If you don't like so please let us know. So that i can make it more better.
If you have to ask anything about any operator then you can ask in comments.
Thankyou for visit
Sahyog Vishwakarma
This document provides an overview of constructors and destructors in C++. It defines that a constructor is a member function that initializes an object when it is created, has the same name as the class, and does not have a return type. A destructor is called when an object ends its lifespan and frees any resources. An example program is given that defines a class with a constructor that sets a data member to 10 and a destructor that prints a message. The document also covers topics like classes, objects, operators, and type conversion in C++.
Operators are elements in C# that are applied to operands in expressions or statements. Unary operators take one operand, like increment (++), while binary operators take two operands, such as arithmetic operators (+, -, *, /). The conditional operator (?:) is the sole ternary operator, taking three operands. Some common operators are assignment (=), arithmetic, comparison, conditional (&&, ||), ternary (?:), and null coalescing (??). Operator precedence and associativity determine the order of evaluation in expressions with multiple operators. Parentheses can be used to override precedence.
Python interpreter and interactive mode, debugging; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence of operators, comments; Illustrative programs: exchange the values of two variables, circulate the values of n variables, distance between two points.
Operators are symbols that tell the compiler to perform mathematical, logical, or other operations on variables and constants. There are several types of operators including arithmetic, unary, assignment, relational, logical, ternary, bitwise, and shift operators. Arithmetic operators represent basic math operations like addition, subtraction, multiplication, and division. Unary operators operate on a single operand, like increment and decrement operators. Assignment operators assign values, relational operators compare values, and logical operators combine conditional tests.
Operators are symbols that represent actions or processes performed on operands. There are several types of operators including arithmetic, relational, logical, bitwise, assignment, identity, and membership operators. Arithmetic operators perform math operations, relational operators compare values, logical operators combine conditional statements, bitwise operators work with bits, assignment operators assign values, identity operators check object equality, and membership operators check if a value is contained within an object. Operators require operands as inputs to perform their defined actions and return results.
The document discusses different types of operators in Java including assignment, arithmetic, unary, equality/relational, logical, bitwise, and bit shift operators. It provides examples of how to use each type of operator and explains their precedence order when evaluating expressions. Key points covered include the different assignment operators, how arithmetic operators work with numbers and strings, truth tables for logical operators, and how bitwise operators manipulate bits.
The document discusses various types of operators in Java including assignment, arithmetic, unary, equality/relational, logical, bitwise, and bit shift operators. It provides examples of how to use each type of operator and explains their precedence order when evaluating expressions. Key points covered include the different assignment operators, how arithmetic operators work with numbers and strings, common unary operators like increment/decrement, truth tables for logical operators, and how bitwise and bit shift operators manipulate bits.
C OPERATORS
The operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C language is rich in built-in operators and provides the following types of operators:
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Assignment Operators
5. Increment and Decrement Operators
6. Conditional Operators
7. Bitwise Operators
8. Special Operators
The document discusses the different types of operators used in the C programming language, including arithmetic, relational, logical, assignment, increment/decrement, conditional, and bitwise operators. It explains what each operator does, its symbol and syntax, and provides examples of how each operator is used. Operators are symbols that allow programmers to perform mathematical, logical, or other operations on data in C programs.
This document describes different types of operators in Verilog including arithmetic, logical, relational, equality, bitwise, reduction, shift, concatenation, replication, and conditional operators. It provides examples of each operator type showing how they are used in Verilog code and what results they produce. It also lists the precedence order for operators from highest to lowest.
This document provides an overview of different types of operators in the C programming language. It discusses arithmetic, relational, logical, bitwise, assignment, conditional, and increment/decrement operators. For each type of operator, it provides examples of common operators of that type, along with brief descriptions of what they do. The document also includes truth tables for bitwise operators and discusses the syntax and usage of conditional and increment/decrement operators.
Operators are symbols that perform operations on data in programming languages. They allow programmers to manipulate variables and values to solve problems efficiently. The main types of operators include arithmetic, comparison, logical, assignment, bitwise, ternary, and sizeof operators. Operators are essential for tasks like data manipulation, control flow, efficient coding, and expressing code concisely. They provide flexibility and improve code understandability.
The document discusses different types of operators in Java including arithmetic, relational, increment/decrement, bitwise, logical, assignment, and conditional operators. It provides examples of each operator type and explains their functionality and order of precedence when used in expressions. Key operator types covered are arithmetic operators for mathematical expressions, relational operators for comparisons, logical operators for Boolean logic, and assignment operators for storing values.
Get more from www.programmingcampus.com
Operators in c programming
-definition of operator
-types of operators
1.Arithmetic operators.
2. Relational operators.
3. Logical operators.
4. Assignment operators.
5. Increment & decrement operators.
a. pre and post increment operator
b. pre and post increment operator
6. Conditional operators.
7. Bitwise operators.
8. Special operators
This document discusses different types of operators used in programming languages. It describes arithmetic operators for mathematical operations, relational operators for comparisons, logical operators for logical expressions, and increment/decrement operators. Examples are provided for each type of operator to demonstrate their usage and effects. The key information covered includes the different operator symbols and their uses in expressions and assignments.
This document defines and provides examples of different types of operators in C programming. It discusses arithmetic, relational, logical, assignment, increment/decrement, conditional, bitwise, and special operators. For each type of operator it provides the syntax, example uses, and meaning. It also gives examples to illustrate the differences between prefix and postfix increment/decrement operators.
The document discusses various operators in Verilog including unary, binary, arithmetic, logical, relational, equality, bitwise logical, shift, and ternary operators. It provides examples of how each operator works and precedence rules. Unary operators operate on a single operand, binary operators take two operands, and the ternary operator checks a condition and branches accordingly. Operator precedence is also covered, noting that parentheses can be used to override the default precedence when needed.
How to Choose the Right Web Development Agency.pdfCreative Fosters
Choosing the right web development agency is key to building a powerful online presence. This detailed guide from Creative Fosters helps you evaluate agencies based on experience, portfolio, technical skills, communication, and post-launch support. Whether you're launching a new site or revamping an old one, these expert tips will ensure you find a reliable team that understands your vision and delivers results. Avoid common mistakes and partner with an agency that aligns with your goals and budget.
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdfVarsha Nayak
The search for an Alternative to BIRT Reports has intensified as companies face challenges with BIRT's steep learning curve, limited visualization capabilities, and complex deployment requirements. Organizations need reporting solutions that offer intuitive design interfaces, comprehensive analytics features, and seamless integration capabilities – all while maintaining the reliability and performance that enterprise environments demand.
Explore innovative tools tailored for modern finance with our Money Lender Software Development, efficient Daily Pigmy Collection Software, and streamlined Personal Loan Software. This presentation showcases how these solutions simplify loan management, boost collection efficiency, and enhance customer experience for NBFCs, microfinance firms, and individual lenders.
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWSBradBedford3
Creating meaningful, real-time engagement across channels is essential to building lasting business relationships. Discover how AWS, in collaboration with Deloitte, set up one of Adobe's first instances of Journey Optimizer B2B Edition to revolutionize customer journeys for B2B audiences.
This session will share the use cases the AWS team has the implemented leveraging Adobe's Journey Optimizer B2B alongside Marketo Engage and Real-Time CDP B2B to deliver unified, personalized experiences and drive impactful engagement.
They will discuss how they are positioning AJO B2B in their marketing strategy and how AWS is imagining AJO B2B and Marketo will continue to work together in the future.
Whether you’re looking to enhance customer journeys or scale your B2B marketing efforts, you’ll leave with a clear view of what can be achieved to help transform your own approach.
Speakers:
Britney Young Senior Technical Product Manager, AWS
Erine de Leeuw Technical Product Manager, AWS
Code and No-Code Journeys: The Coverage OverlookApplitools
Explore practical ways to expand visual and functional UI coverage without deep coding or heavy maintenance in this session. Session recording and more info at applitools.com
What is data visualization and how data visualization tool can help.pdfVarsha Nayak
An open source data visualization tool enhances this process by providing flexible, cost-effective solutions that allow users to customize and scale their visualizations according to their needs. These tools enable organizations to make data-driven decisions with complete freedom from proprietary software limitations. Whether you're a data scientist, marketer, or business leader, understanding how to utilize an open source data visualization tool can significantly improve your ability to communicate insights effectively.
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...BradBedford3
Inspired by the Adobe Summit hands-on lab, Optimize Your Marketo Instance Performance, review the recording from June 5th to learn best practices that can optimize your smart campaign and smart list processing time, inefficient practices to try to avoid, and tips and tricks for keeping your instance running smooth!
You will learn:
How smart campaign queueing works, how flow steps are prioritized, and configurations that slow down smart campaign processing.
Best practices for smart list and smart campaign configurations that yield greater reliability and processing efficiencies.
Generally recommended timelines for reviewing instance performance: walk away from this session with a guideline of what to review in Marketo and how often to review it.
This session will be helpful for any Marketo administrator looking for opportunities to improve and streamline their instance performance. Be sure to watch to learn best practices and connect with your local Marketo peers!
Have you upgraded your application from Qt 5 to Qt 6? If so, your QML modules might still be stuck in the old Qt 5 style—technically compatible, but far from optimal. Qt 6 introduces a modernized approach to QML modules that offers better integration with CMake, enhanced maintainability, and significant productivity gains.
In this webinar, we’ll walk you through the benefits of adopting Qt 6 style QML modules and show you how to make the transition. You'll learn how to leverage the new module system to reduce boilerplate, simplify builds, and modernize your application architecture. Whether you're planning a full migration or just exploring what's new, this session will help you get the most out of your move to Qt 6.
Plooma is a writing platform to plan, write, and shape books your wayPlooma
Plooma is your all in one writing companion, designed to support authors at every twist and turn of the book creation journey. Whether you're sketching out your story's blueprint, breathing life into characters, or crafting chapters, Plooma provides a seamless space to organize all your ideas and materials without the overwhelm. Its intuitive interface makes building rich narratives and immersive worlds feel effortless.
Packed with powerful story and character organization tools, Plooma lets you track character development and manage world building details with ease. When it’s time to write, the distraction-free mode offers a clean, minimal environment to help you dive deep and write consistently. Plus, built-in editing tools catch grammar slips and style quirks in real-time, polishing your story so you don’t have to juggle multiple apps.
What really sets Plooma apart is its smart AI assistant - analyzing chapters for continuity, helping you generate character portraits, and flagging inconsistencies to keep your story tight and cohesive. This clever support saves you time and builds confidence, especially during those complex, detail packed projects.
Getting started is simple: outline your story’s structure and key characters with Plooma’s user-friendly planning tools, then write your chapters in the focused editor, using analytics to shape your words. Throughout your journey, Plooma’s AI offers helpful feedback and suggestions, guiding you toward a polished, well-crafted book ready to share with the world.
With Plooma by your side, you get a powerful toolkit that simplifies the creative process, boosts your productivity, and elevates your writing - making the path from idea to finished book smoother, more fun, and totally doable.
Get Started here: https://www.plooma.ink/
How the US Navy Approaches DevSecOps with Raise 2.0Anchore
Join us as Anchore's solutions architect reveals how the U.S. Navy successfully approaches the shift left philosophy to DevSecOps with the RAISE 2.0 Implementation Guide to support its Cyber Ready initiative. This session will showcase practical strategies for defense application teams to pivot from a time-intensive compliance checklist and mindset to continuous cyber-readiness with real-time visibility.
Learn how to break down organizational silos through RAISE 2.0 principles and build efficient, secure pipeline automation that produces the critical security artifacts needed for Authorization to Operate (ATO) approval across military environments.
Advanced Token Development - Decentralized Innovationarohisinghas720
The world of blockchain is evolving at a fast pace, and at the heart of this transformation lies advanced token development. No longer limited to simple digital assets, today’s tokens are programmable, dynamic, and play a crucial role in driving decentralized applications across finance, governance, gaming, and beyond.
Generative Artificial Intelligence and its ApplicationsSandeepKS52
The exploration of generative AI begins with an overview of its fundamental concepts, highlighting how these technologies create new content and ideas by learning from existing data. Following this, the focus shifts to the processes involved in training and fine-tuning models, which are essential for enhancing their performance and ensuring they meet specific needs. Finally, the importance of responsible AI practices is emphasized, addressing ethical considerations and the impact of AI on society, which are crucial for developing systems that are not only effective but also beneficial and fair.
Zoneranker’s Digital marketing solutionsreenashriee
Zoneranker offers expert digital marketing services tailored for businesses in Theni. From SEO and PPC to social media and content marketing, we help you grow online. Partner with us to boost visibility, leads, and sales.
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...Alluxio, Inc.
Alluxio Webinar
June 10, 2025
For more Alluxio Events: https://www.alluxio.io/events/
Speaker:
David Zhu (Engineering Manager @ Alluxio)
Storing data as Parquet files on cloud object storage, such as AWS S3, has become prevalent not only for large-scale data lakes but also as lightweight feature stores for training and inference, or as document stores for Retrieval-Augmented Generation (RAG). However, querying petabyte-to-exabyte-scale data lakes directly from S3 remains notoriously slow, with latencies typically ranging from hundreds of milliseconds to several seconds.
In this webinar, David Zhu, Software Engineering Manager at Alluxio, will present the results of a joint collaboration between Alluxio and a leading SaaS and data infrastructure enterprise that explored leveraging Alluxio as a high-performance caching and acceleration layer atop AWS S3 for ultra-fast querying of Parquet files at PB scale.
David will share:
- How Alluxio delivers sub-millisecond Time-to-First-Byte (TTFB) for Parquet queries, comparable to S3 Express One Zone, without requiring specialized hardware, data format changes, or data migration from your existing data lake.
- The architecture that enables Alluxio’s throughput to scale linearly with cluster size, achieving one million queries per second on a modest 50-node deployment, surpassing S3 Express single-account throughput by 50x without latency degradation.
- Specifics on how Alluxio offloads partial Parquet read operations and reduces overhead, enabling direct, ultra-low-latency point queries in hundreds of microseconds and achieving a 1,000x performance gain over traditional S3 querying methods.
In this session we cover the benefits of a migration to Cosmos DB, migration paths, common pain points and best practices. We share our firsthand experiences and customer stories. Adiom is the trusted partner for migration solutions that enable seamless online database migrations from MongoDB to Cosmos DB vCore, and DynamoDB to Cosmos DB for NoSQL.
Insurance policy management software transforms complex, manual insurance operations into streamlined, efficient digital workflows, enhancing productivity, accuracy, customer service, and profitability for insurers. Visit https://www.damcogroup.com/insurance/policy-management-software for more details!
4. Sr.No. Operator & Description Example
1 + Addition − Adds values on either side of the operator. a + b will give ?
2
− Subtraction − Subtracts right hand operand from left hand
operand.
a - b will give ?
3 * Multiplication − Multiplies values on either side of the operator. a * b will give ?
4 / Division − Divides left hand operand by right hand operand. b / a will give ?
5
% Modulus − Divides left hand operand by right hand operand and
returns remainder.
b % a will give ?
6
** Exponent − Performs exponential (power) calculation on
operators.
a**b will give 10 to the power ?
6. Sr.No. Operator & Description Example
1
==
Checks if the value of two operands are equal or not, if yes then
condition becomes true.
(a == b) is not true.
2
!=
Checks if the value of two operands are equal or not, if values are
not equal then condition becomes true.
(a != b) is true.
3
>
Checks if the value of left operand is greater than the value of
right operand, if yes then condition becomes true.
(a > b) is not true.
4
<
Checks if the value of left operand is less than the value of right
operand, if yes then condition becomes true.
(a < b) is true.
5
>=
Checks if the value of left operand is greater than or equal to the
value of right operand, if yes then condition becomes true.
(a >= b) is not true.
7. Sr.No. Operator & Description Example
6
<=
Checks if the value of left operand is less than or equal to the
value of right operand, if yes then condition becomes true.
(a <= b) is true.
7
⇔
Combined comparison operator. Returns 0 if first operand equals
second, 1 if first operand is greater than the second and -1 if first
operand is less than the second.
(a <=> b) returns -1.
8
===
Used to test equality within a when clause of a casestatement.
(1...10) === 5 returns true.
9
.eql?
True if the receiver and argument have both the same type and
equal values.
1 == 1.0 returns true, but 1.eql?(1.0) is false.
10
equal?
True if the receiver and argument have the same object id.
if aObj is duplicate of bObj
then aObj == bObj is true,
a.equal?bObj is false
but a.equal?aObj is true
9. Sr.No. Operator & Description Example
1
=
Simple assignment operator, assigns values from right side
operands to left side operand.
c = a + b will assign the value of a + b into c
2
+=
Add AND assignment operator, adds right operand to the left
operand and assign the result to left operand.
c += a is equivalent to c = c + a
3
-=
Subtract AND assignment operator, subtracts right operand from
the left operand and assign the result to left operand.
c -= a is equivalent to c = c - a
4
*=
Multiply AND assignment operator, multiplies right operand with
the left operand and assign the result to left operand.
c *= a is equivalent to c = c * a
10. Sr.No. Operator & Description Example
5
/=
Divide AND assignment operator, divides
left operand with the right operand and
assign the result to left operand.
c /= a is equivalent to c = c / a
6
%=
Modulus AND assignment operator, takes
modulus using two operands and assign
the result to left operand.
c %= a is equivalent to c = c % a
7
**=
Exponent AND assignment operator,
performs exponential (power) calculation
on operators and assign value to the left
operand.
c **= a is equivalent to c = c ** a
12. Parallel Assignment
Ruby also supports the parallel assignment of variables. This enables
multiple variables to be initialized with a single line of Ruby code
15. Bitwise Operators
Bitwise operator works on bits and performs bit by bit operation.
Assume if a = 60; and b = 13; now in binary format they will be as
follows
16. Sr.No. Operator & Description Example
1
&
Binary AND Operator copies a bit to the result if it exists in both
operands.
(a & b) will give 12, which is 0000 1100
2
|
Binary OR Operator copies a bit if it exists in either operand.
(a | b) will give 61, which is 0011 1101
3
^
Binary XOR Operator copies the bit if it is set in one operand but
not both.
(a ^ b) will give 49, which is 0011 0001
17. Sr.No. Operator & Description Example
4
~
Binary Ones Complement Operator is unary and has the effect of
'flipping' bits.
(~a ) will give -61, which is 1100 0011 in 2's complement form due to
a signed binary number.
5
<<
Binary Left Shift Operator. The left operands value is moved left by
the number of bits specified by the right operand.
a << 2 will give 240, which is 1111 0000
6
>>
Binary Right Shift Operator. The left operands value is moved right
by the number of bits specified by the right operand.
a >> 2 will give 15, which is 0000 1111
19. Sr.No. Operator & Description Example
1
and
Called Logical AND operator. If both the operands are true, then
the condition becomes true.
(a and b) is true.
2
or
Called Logical OR Operator. If any of the two operands are non
zero, then the condition becomes true.
(a or b) is true.
3
&&
Called Logical AND operator. If both the operands are non zero,
then the condition becomes true.
(a && b) is true.
20. Sr.No. Operator & Description Example
4
||
Called Logical OR Operator. If any of the two operands are non
zero, then the condition becomes true.
(a || b) is true.
5
!
Called Logical NOT Operator. Use to reverses the logical state of
its operand. If a condition is true, then Logical NOT operator will
make false.
!(a && b) is false.
6
not
Called Logical NOT Operator. Use to reverses the logical state of
its operand. If a condition is true, then Logical NOT operator will
make false.
not(a && b) is false.
24. Sr.No. Operator & Description Example
1
..
Creates a range from start point to
end point inclusive.
1..10 Creates a range from 1 to 10
inclusive.
2
...
Creates a range from start point to
end point exclusive.
1...10 Creates a range from 1 to 9.
Range Operators
26. defined? Operators
defined? is a special operator that takes the form of a method call to
determine whether or not the passed expression is defined. It returns
a description string of the expression, or nil if the expression isn't
defined.