CS192 Operators: Unary, Binary, Ternary, Logical, Relational, Bitwise, and Scope, Slides of Computer Programming

This document from cs192 lecture 6, fall 2011, covers various types of operators in programming, including unary, binary, and ternary operators, arithmetic, assignment, increment-decrement, pointer, insertion-extraction, logical, relational, bitwise, and scope resolution operators. The document also discusses operator precedence and associativity.

Typology: Slides

2011/2012

Uploaded on 07/13/2012

ekbaal
ekbaal 🇮🇳

3

(1)

30 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
CS 192
Lecture 6
Fall 2011
December 28, 2011
Ghufran Ahmed
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download CS192 Operators: Unary, Binary, Ternary, Logical, Relational, Bitwise, and Scope and more Slides Computer Programming in PDF only on Docsity!

1

CS 192Lecture 6Fall 2011

December 28, 2011Ghufran Ahmed

2

Operators (Unary, Binary, Ternary)• Arithmetic

-^ Assignment

-^ Increment – Decrement

++, -- (pre, post)

-^ Pointer

& address operator* indirection operator (de-referencing operator)

-^ Insertion, Extraction

4

Operator Precedence

  • Who comes before• Who comes after

5

Operator Associativity

  • Left-to-right• Right-to-left