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

    A set is a collection of objects. The objects in a set are called the elements of the set. A set of numbers is simply a listing, within braces {}. For example, the set of numbers used for counting can be represented as S = {1, 2, 3, 4, 5, . . .}. The braces…

    • 1254 Words
    • 6 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
  • Powerful Essays

    Nt1330 Unit 1 Research Paper

    • 4285 Words
    • 18 Pages

    Each character requires one byte as it is usually stored as an ASCII character. Notice that a digit such as 8 could be held as either a character, an integer or even a real. If any calculations are going to take place on the value then it should be held as either an integer or a real. If the calculation will never result in it being extremely large or gaining decimal places then an integer should be used.…

    • 4285 Words
    • 18 Pages
    Powerful 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
  • Good Essays

    Psy 230 Week 3 Ilab

    • 675 Words
    • 3 Pages

    B. I thought that this food choice was absolutely impressive to me because many people say that McDonalds is very unhealthy for an individual. I am blown away because this meal was very low on calories and provided very high vitamin A and a very good source of protein. In this meal combination the only thing to have any sugar was orange juice and it made up for the sugars by having an outstanding amount of vitamin A. There was very very little fat associated with this meal which made this meal highly healthy and a given choice to any one individual who wants to eat healthy. Allthough there was a good amount of calcium as well with this meal. Could use more, but it is not at an alarming low level.…

    • 675 Words
    • 3 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

    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

    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

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

    • 280 Words
    • 2 Pages
    Satisfactory 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

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

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