×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

37

0

3

# BEGINNING PROG FOR ENG CSCI 1190

RPI
GPA 3.76

Staff

These notes were just uploaded, and will be ready to view shortly.

Either way, we'll remind you when they're ready :)

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

COURSE
PROF.
Staff
TYPE
Class Notes
PAGES
3
WORDS
KARMA
25 ?

## Popular in ComputerScienence

This 3 page Class Notes was uploaded by Santos Fadel on Monday October 19, 2015. The Class Notes belongs to CSCI 1190 at Rensselaer Polytechnic Institute taught by Staff in Fall. Since its upload, it has received 37 views. For similar materials see /class/224858/csci-1190-rensselaer-polytechnic-institute in ComputerScienence at Rensselaer Polytechnic Institute.

×

## Reviews for BEGINNING PROG FOR ENG

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/19/15
CSC171190 Beginning C Programming for Engineers Lecture 4 Arrays and Pointers Gang Chen ShortrCut Assignments ab aab a7b aaib7 ao aao a aab ao aao Expressions as Statements 0 Expressions can be directly used as statements 1 1 34 Postfix Increment and Decrement o Post x increment and decrement Operators return the original value of the variable then increment or decrement the variable int ab printf dn a f 10 printf dn a M 11 r printf dn b zquot 10 printf dn b f 9 Prefix Increment and Decrement o Pre x increment and decrement Operators increment or decrement the variable then return its resulting value int ab printf dn a W 11 printf dn a M 11 r printf dn 77b f 9 printf dn b f 9 Arrays An array an be viewed as a set of indexed variables with the same name Declared using the I notation to indicate the rangesize of the array Elements are indexed using the I notation ranging from 0 to one less than the bound int a5 m for 10 ilt5 i a i i l Using Arrays There are no human operarors t orarmys ilt5i b2 W o1lt X ilt5i Ciaibi zquot ok W error X W error X W error X Array lndices o ndices must be integers Multidimensional Arrays int ija5 3 fori0ilt5i forj0jlt3j ali jlij7 Ianlass Exercise 41 Pointers Pointers are variables that contain memory addresses as their values 1 int p 2 int 1 l j 2 a pampi r printf p dnquotp W D1 j a printf p dnquotp W D2 7 34 s Pri tf p dn p zquot p3 Arrays and Pointers o In many cases arrays and pointers are interchangeable snnu sum 3n smz sue Jnt am l l l Jnt p aml aUI 21 law m Pointers as Function Parameters void incremen nt a at void incremem Z nt ml WW mt mam wt 1 incrementm pnmmd return Arrays as Function Parameters mt sumomal mt n J equ walenno mt summt a mt n 7 wt 5 for 0 SUWZO Kn H 7 n return 3 mtmamo m mmoo fOrUZO K ch pHmf The total is mm xsumwoo Ianlass Exercise 42

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Janice Dongeun University of Washington

#### "I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Steve Martinelli UC Los Angeles

#### "There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

#### "It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com