cpsc 213

Card Set Information

Author:
Anonymous
ID:
203949
Filename:
cpsc 213
Updated:
2013-02-27 20:45:15
Tags:
assembly code Computer Systems
Folders:

Description:
assembly code, C, Computer Systems
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user Anonymous on FreezingBlue Flashcards. What would you like to do?


  1. How do you allocate a dynamic array of object "int x" and of size "n"?
    (x*)malloc(n*sizeof(x));
  2. what might a constructor for the C code look like?

    //Point
    typedef struct{
        float x;
        float y;
    } Point;
    • void construct_point(Point* point, float newX, float newY){
    •     point->x = newX;
    •     point->y = newY;
    • }
  3. Left shift by k bits, x << k =
    x*2
  4. x >> k =
    x/2k
  5. 1 byte =
    8 bits
  6. a static variable's storage is allocated...
    before the program starts
  7. a dynamic variables storage is allocated...
    during the program execution

What would you like to do?

Home > Flashcards > Print Preview