1D Arrays


Problems and Solutions 2

Problem : You are given a character array word of size n. Write C code that will reverse the order of the characters in this array.


Problem : Write a function that takes in an array of type card_t and length n and shuffles it. Assume that you have a function called RandomInteger(x, y) which returns an integer greater than or equal to x and less than y.


Problem : Write a function that is passed an array of integers sorted in ascending order and returns with all of the duplicate entries removed.


Take a Study Break

Green YOUR SCHOOL!

Click here to get involved with dosomething.org!

John Krasinski's BIG MIRACLE

Click to watch the trailer and read exclusive star interviews!

Do you like Anna?

Read Dear Albert... from ANNA's perspective!

BATTLESHIP, the movie

Here's why we're super jazzed about it.

Do energy juices actually work?

Our blogger puts 'em to the test!


The Book

Cover image

Read What You Love, Anywhere You Like

Get Our FREE NOOK Reading Apps