New User Special Price Expires in

Let's log you in.

Sign in with Facebook


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


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Santos Fadel


Santos Fadel
GPA 3.76


Almost Ready


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

Purchase these notes here, or revisit this page.

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

Preview These Notes for FREE

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

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

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.

Similar to CSCI 1190 at RPI

Popular in ComputerScienence




Report this Material


What is Karma?


Karma is the currency of StudySoup.

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


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

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


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


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:

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

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.