Preview

Pointer and Stack

Better Essays
Open Document
Open Document
1257 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pointer and Stack
Water Billing System
a.) Description

A billing system is a combination of software and hardware that receives call detail and service usage information, groups this information for specific accounts or customers, produces invoices, creates reports for management, and records (posts) payments made to customer accounts.

b.) Related Studies a.) Sites : Pointers http://www.tutorialspoint.com/cprogramming/c_quick_guide.htm A pointer is a variable whose value is the address of another variable ie. direct address of the memory location. Like any variable or constant, you must declare a pointer before you can use it to store any variable address. The general form of a pointer variable declaration is:
-------------------------------------------------
type *var-name;
Here, type is the pointer's base type; it must be a valid C data type and var-name is the name of the pointer variable. The asterisk * you used to declare a pointer is the same asterisk that you use for multiplication. However, in this statement the asterisk is being used to designate a variable as a pointer. Following are the valid pointer declaration:
-------------------------------------------------
int *ip; /* pointer to an integer */
-------------------------------------------------
double *dp; /* pointer to a double */
-------------------------------------------------
float *fp; /* pointer to a float */
-------------------------------------------------
char *ch /* pointer to a character */
The actual data type of the value of all pointers, whether integer, float, character, or otherwise, is the same, a long hexadecimal number that represents a memory address. The only difference between pointers of different data types is the data type of the variable or constant that the pointer points to. b.) Books : Problem Solving And Problem Design in C, Hanly & Koffman, 1996

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

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    Keyword that tells the compiler that the data type of the identifier is a number.…

    • 703 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Arrays store items that have the same type of data type like a group of employees’ names and social security numbers for a team of 2000 personal. Pointer is a variable that greatly extends the power and flexibility of a program, each memory location that is used to store data value has an address. The address provides the means for a PC hardware to reference a particular data item.…

    • 485 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    Pointers are, essentially, address variables, or variables that hold as their value the address of other variables. In terms of memory management, they are very powerful devices, and they more closely and efficiently use the actual internal hardware registers of the microprocessor that the program operates on.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    C++ programming: editing, compiling, user I/O, variables (ints, doubles, char, strings, booleans), loops, decisions, functions, pointers, arrays, tables, databases, sorting.…

    • 1748 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    Hcr 220 Week 1 Assignment

    • 674 Words
    • 3 Pages

    The medical billing process is used by healthcare providers and insurance companies to submit and follow up on medical services in order to receive payment. There are ten steps to the medical billing process. These steps are made up of three categories: The visit, the claim, and post claim.…

    • 674 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Cs Programming Chapter 1

    • 2450 Words
    • 10 Pages

    ____ data items may involve organizing or sorting them, checking them for accuracy, or performing calculations with them.…

    • 2450 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CS305 Final Exam Questions

    • 1044 Words
    • 6 Pages

    c. It increments the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer.…

    • 1044 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    3. Any piece of data that is stored in a computer’s memory must be stored as a…

    • 435 Words
    • 5 Pages
    Satisfactory Essays
  • Better Essays

    E-Commerce Exercise

    • 1068 Words
    • 5 Pages

    1. As an object, a String variable name is not a simple data type. It is a(n) ____; that is, a variable that holds a memory address.…

    • 1068 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    It 218 Week 4 Checkpoint

    • 290 Words
    • 2 Pages

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

    • 290 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework

    • 343 Words
    • 2 Pages

    68. In the HCS12, the stack pointer (SP) points to _____________ (the last used, next available) location of the stack.…

    • 343 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    ; stdcall procedure names must be be also decorated by "@" and size of arguments at the end…

    • 701 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Array Representation

    • 338 Words
    • 2 Pages

    Heap is implemented as an array, but its operations can be grasped more easily by looking at the binary tree representation. The mapping between the array representation and binary tree representation is unambiguous. The array representation can be achieved by traversing the binary tree in level order.…

    • 338 Words
    • 2 Pages
    Good Essays

Related Topics