×

### Let's log you in.

or

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

×

or

## Lab Assignment 01

by: Usman Qureshi

19

0

2

# Lab Assignment 01

Marketplace > Lab Assignment 01
Usman Qureshi
AASU
GPA 2.8

No professor available

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

Lab Assignment 01
COURSE
PROF.
No professor available
TYPE
Study Guide
PAGES
2
WORDS
KARMA
50 ?

## Popular in Department

This 2 page Study Guide was uploaded by Usman Qureshi on Wednesday November 18, 2015. The Study Guide belongs to a course at a university taught by a professor in Fall. Since its upload, it has received 19 views.

×

## Reviews for Lab Assignment 01

×

×

### 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: 11/18/15
Riphah International University Islamabad Course Code CSZOlS Fall 2015 Course Title Data Structure and Algorithm Activity Type Lab Tasks Objective Basic concepts Pointers 1 Write a C program that a b 2 Repeat above example with integer array and integer pointer Declare array of type char eg char chArray5 IIIII39IIII o u Declare a pointer of type character eg charchPtr and assign the reference of chArray to it Use for loop that each time print the value occupied by chPtr and then increment the chPtr by 1 3 Write a program that a Contains a function printArraychar pointer int size b Define a character array and character pointer in the main function similar to Question C 1 Call printArray function and pass character pointer to it as a function argument The printArray function should print entire values by using for loop similar to Question 1 4 Write a program where you a C Define integer array int iArray525436 b Define a function void incrementArrayValuesint array int size The function shall use for loop and increment each value of an array by one and then print the result Use another for loop in the main function and print iArray 5 Write a program where you Define two character arrays each of size 5 b Define concatenate function char concatchar arg1 int sizel char arg2 int size2 The function should concatenate the two arrays and return the result Inside main function write a syntax char result concatarray15array25 Now use a C for loop and print each value occupied by result 6 Write a class Person with attribute agedouble Also write a default constructor of Person where you assign age value as 40 a Inside main function write following code and then express your observation Person valueTypePerson Person renypePersonnew Person Person valueTypePersonl valueTypePerson Person renypePersonl renypePerson coutltlt increment value type and print result valueTypePersonlagelOO coutltlt valueTypePersonage coutltlt valueTypePersonlage coutltlt increment reference type and print result renypePersonlagelOO coutltlt renypePersonage coutltlt renype Person lage coutltlt write your observation in this statement

×

×

### 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

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."

Amaris Trozzo George Washington University

#### "I made \$350 in just two days after posting my first study guide."

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!"

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