Preview

It 218 Week 4 Checkpoint

Satisfactory Essays
Open Document
Open Document
290 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
It 218 Week 4 Checkpoint
IT 218 Week 4 Checkpoint
Jerimeh Jackson
IT 218
August 24, 2012
UOP

IT 218 Week 4 Checkpoint What are the definition and an example of a pointer?
A pointer can be defined as a memory address. To further explain this definition, we declared a variable of (name). It will look much like this (int name). Every variable will occupy some memory. Now we will declare another variable to under (int name). This variable will be (int name-1), and now this variable is declared as a pointer to (int name).What makes it a pointer is the fact that (name-1) points towards (int name) in a memory storage sense. Basically the pointer to (int name) is the contents of (int name-1). In simple terms, the pointer is not a variable at all. It is the place a specific variable will store and access its information.

What are the definition and an example of an array? An array is a variable that holds more than more than one value, and an array can be combined with multiple variables for a more complex structure. An array is declared much similar with any other variable. The only difference is the number of elements is shown in brackets. An example of an array will be look much like these three: calories [ min ], 30 [ 7 ], and feet [ 12 ]. Each one of these arrays can be used as long as it is appropriate for the program.

What is the difference between a one-dimensional and a two-dimensional array? A one dimensional array is a variable that holds more than one index value such as car [ 13 ]. A Two dimensional array will hold two different index values such as car [ 10 ] [ 6

You May Also Find These Documents Helpful

  • Good Essays

    Nt1310 Unit 1 Quiz

    • 1980 Words
    • 8 Pages

    6 . For an unconditional approach to a particular part of a complex PL/SQL block, which of the following control structures can be used?…

    • 1980 Words
    • 8 Pages
    Good Essays
  • Good Essays

    It 244 Week 1 Checkpoint

    • 721 Words
    • 3 Pages

    Mark S Merkow, Jim Breithaupt. (2006). Information Security. Principles and Practices- Chapter 4. Retrieved from Mark S Merkow, Jim Briethaupt, IT244-Intro to IT Security.…

    • 721 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Checkpoint It 205

    • 276 Words
    • 2 Pages

    The FDCA project is an evolution into the technology age for the U.S. Census Bureau. Implementing handheld electronic devices improves the effectiveness of the collection process because it cuts down the use of paper for recording data, it replaces hardcopy maps that collectors would carry to find their way around, saves time and money, and makes staying organized easier to do which improves data quality and credibility.…

    • 276 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Array Structure Paper

    • 833 Words
    • 4 Pages

    “An array is a collective name given to a group of similar quantities. These similar quantities could be percentage marks of 100 students, number of chairs in home, or salaries of 300 employees or ages of 25 students. Thus an array is a collection of similar elements. These similar elements could be all integers or all characters, and so on” (Thompson, 2007). Building an array can be confusing for the Bug Blasters can be very confusing for a programmer who does not fully understand how they work.…

    • 833 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    It 240 Week 2 Appendixb

    • 565 Words
    • 3 Pages

    1. You are the network administrator for a new company that has 10 users and that plans to add 5 more users within a year. The files need to be accessed by all 10 users, and each user must have different security rights.…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Choose three to four of the recommendations for happiness that you have practiced in your life.…

    • 121 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    7 and Array

    • 500 Words
    • 2 Pages

    7. When a single array element, such as myArray[2], is passed to a method, the method receives _____.…

    • 500 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Array Structure Proposal

    • 712 Words
    • 3 Pages

    In order for this program to perform its intended function of contacting all the patients regarding their upcoming appointment, information regarding these patients needs to be gathered. Each patient will have his or her name, phone number, email, and appointment type recorded into the program. The recording of the patient’s information will need to utilize a section of programming known as arrays. An array is a collection of variables of the same type and referenced by the same…

    • 712 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Lab_6_solution

    • 1259 Words
    • 3 Pages

    By the end of this lab session, you will be able to - declare an integer and character array - assign values to array during compilation and during execution - print contents of an array using repetition structure SAMPLE PROGRAM 1 /1. A program reads a series of numbers and print it reversed / include stdio.h void main (void) int i, Num, numbers10 printf(You may enter up to 10 integersn) printf(How many integers would you like to enter ) scanf (d, Num) if (Num 10) Num 10 printf(nEnter your numbers ) for (i 0 i Num i) scanf(d, numbersi) printf(nYour numbers reversed are ) for (i Num - 1 i 0 --i) printf(d , numbersi) printf(nn) SAMPLE PROGRAM 2 /2. Program that demonstrates the use of for loop to accept 8 numbers from user and displays certain numbers from the array / includestdio.h void main() int num, numbers8 printf(You need to enter 8 numbers ... n) for(num 0 num 7 num) scanf(i,numbersnum) printf(nn) printf(Your 1st element is dn,numbers0) printf(Your 2nd element is dn,numbers1) printf(Your 3rd element is dn,numbers2) printf(Your 8th element is dn,numbers7) printf(nn) printf(nnAll together your numbers aren) for(num 0 num 7 num) printf(d ,numbersnum) printf(nn) SAMPLE PROGRAM 3 /3. Program declares an array called charArray and assigns a single character to each of the array element using the initialize braces. Finally, the program prints the content of the array. / includestdio.h void main() char charArray8 F,r,i,e,n,d,s int i for(i 0 i 7 i) printf(charArrayd has a value of cn,i, charArrayi) printf(nMy favourite comedy sitcom is snn, charArray) SAMPLE PROGRAM 4 /4. Program consists of arrays (i.e. integer array and character array). It uses loops to sort the integer array elements in ascending and descending order. Then it displays the contents of the array elements respectively. / includestdio.h void main(void) int array10 0,1,2,3,4,5,6,7,8,9, i char string20 This is a string for(i…

    • 1259 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    mr shravan

    • 881 Words
    • 4 Pages

    parallel arrays (or arrayLists). If there are any uses of an array of records or structures/objects,…

    • 881 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Oops

    • 4782 Words
    • 18 Pages

    Indexers are used for treating an object as an array. The indexers are usually known as smart arrays in C# community. Defining a C# indexer Is much like defining…

    • 4782 Words
    • 18 Pages
    Good Essays
  • Satisfactory Essays

    (I have taught you how to write the Calculation Class – “black box” concept. Encapsulation, Polymorphism)…

    • 280 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Java Coding Sample

    • 627 Words
    • 3 Pages

    Program to create ASCII frequency table from file and url. Demonstration of try / catch blocks. The CIA 2008 Factbook may be downloaded from Project Gutenberg.…

    • 627 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Multidimensional arrays concept is much the same as one-dimensional arrays, except that the array values in a multidimensional array will store the data as table of values in rows and columns.…

    • 396 Words
    • 4 Pages
    Good Essays
  • Better Essays

    c++ balaguruswamy

    • 1703 Words
    • 22 Pages

    printf("\n%c%c%c%c",s [ i ],*(s+i),*(i+s),i[s]); } Answer: mmmm aaaa nnnn Explanation: s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array name is the base address for that array. Here s is the base address.…

    • 1703 Words
    • 22 Pages
    Better Essays