Create program that uses Arrays
This presentation is the property of its rightful owner.
Sponsored Links
1 / 23

Create program that uses Arrays PowerPoint PPT Presentation


  • 67 Views
  • Uploaded on
  • Presentation posted in: General

Create program that uses Arrays. Create program that uses Arrays. Pre Test. I ntroducing Arrays. Defining and Initializing Arrays. Contents. Passing Arrays to Function. Post Test. Pre Test. It is the programming language. c.Notepad d.Browser. a. URL b. C ++.

Download Presentation

Create program that uses Arrays

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Create program that uses arrays

Create program that uses Arrays

Create program that uses Arrays


Contents

Pre Test

Introducing Arrays

Defining and Initializing Arrays

Contents

Passing Arrays to Function

Post Test


Pre test

Pre Test


Create program that uses arrays

It is the programming language

c.Notepad

d.Browser

a. URL

b. C ++

also known as vector or multidimensional languages

a. Pointers

b. Characters

c. Array

d. Strings


Create program that uses arrays

Two types of Array

a. One dimension and multi-dimension array

b. Wattpad and Notepad

Programming language

a. Notepad

b. URL

c. Browser

d. C ++


Create program that uses arrays

What is Array ?

What is Array ?

An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.

An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.


Create program that uses arrays

Defining and Initializing Arrays

When declaring a regular array of local scope (within a function, for example), if we do not specify otherwise, its elements will not be initialized to any value by default, so their content will be undetermined until we store some value in them. The elements of global and static arrays, on the other hand, are automatically initialized with their default values, which for all fundamental types this means they are filled with zeros


Create program that uses arrays

Multidimensional Array

Multidimensional arrays can be described as "arrays of arrays". For example, a bidimensional array can be imagined as a bidimensional table made of elements, all of them of a same uniform data type.


Create program that uses arrays

One Dimensional Array

A one-dimensional array is a structured collection of components (often called array elements) that can be accessed individually by specifying the position of a component with a single index value.


Create program that uses arrays

Passing Arrays to Function


Create program that uses arrays

/* example program to demonstrate the passing of an array */

#include <stdio.h>

int maximum( int [] ); /* ANSI function prototype */

int maximum( int values[5] )

{

intmax_value, i;

max_value = values[0];

for( i = 0; i < 5; ++i )

if( values[i] > max_value )

max_value = values[i];

return max_value;

}

main()

{

int values[5], i, max;

printf("Enter 5 numbers\n");

for( i = 0; i < 5; ++i )

scanf("%d", &values[i] );

max = maximum( values );

printf("\nMaximum value is %d\n", max );


Create program that uses arrays

Post Test


Create program that uses arrays

It is the programming language

c.Notepad

d.Browser

a. URL

b. C ++

also known as vector or multidimensional languages

a. Pointers

b. Characters

c. Array

d. Strings


Create program that uses arrays

Two types of Array

a. One dimension and multi-dimension array

b. Wattpad and Notepad

Programming language

a. Notepad

b. URL

c. Browser

d. C ++


Create program that uses arrays

References

http://www.google.com.ph

http://www.cplusplus.com/doc/tutorial/arrays

http://www.learncpp.com/cpp-tutorial/65-multidimensional-arrays/


Create program that uses arrays

Acknowledgement

I would like to thank my friends for supporting me beyond my needs.


Create program that uses arrays

Special thanks to:

Mr. John Reluba

My Classmates

and ME !!!

Copy Right 2012


Create program that uses arrays

Sorry…

Back


Create program that uses arrays

Sorry…

Back


Create program that uses arrays

Your HOT !!!

Correct

Back


Create program that uses arrays

Your HOT !!!

Correct

Back


  • Login