¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

week7-

hasdfhfsd gsdhhgsdh Inglés 12 fichas

Fichas del conjunto (12)

  1. 1purpose of a modulelimit the visibilty of program data
  2. 2prototypeidentifies the function type. Provides info that the compiler requires to validate a function call
  3. 3stdio.hincludes prototypes for printf() and scanf() functions
  4. 4scopedescribes the visibility of a variable depending on where its definition is placed
  5. 54 scopes and definitions/scopes sizes-global: declared outside all function definitions. Startup-termination of program. high coupling
    - function scope: declared in function header. Calling of function - returning to caller. Compiler initializes variables w pass by value or pass by address.
    - local scope: declared in function body. definition - end of code block.
    - block scope: declared in code block. Definition - closing brace of code block.
  6. 6overlapping scope & y its trashWhen a parameter is hidden w/ another variable so the initial value can be declared/called to at any time. Sucks bc its a poor style choice(2 variables but 1 name).
  7. 7how to bar changes when in a list when its being called to in a functionadd const b4 type of list
  8. 8pass by value vs. pass by addressMeans that the compiler copies the value of the argument in the call statement and puts it in the function call. Changes in the function don't affect the initial value
    vs
    means that the compiler uses the address of the variable meaning that the initial variable changes in the call statement
  9. 9copying(when does the compiler perform ___ by ___ copyingwhenever u:
    -pass an object by value
    -assign an object to an existing object
    -initialize a new object using an existing object
    -return an object by value
  10. 10why pass by address is more efficient and formattingBc u dont have to create additional variables, the compiler does less work bc it doesnt have to initialize values.
    Format:
    (*st).no
    or
    st (arrow) no
  11. 115 style guidelines- place opening brace on seperate line
    -include parameter identifiers in the prototype declaration as documentation
    -use generic comments and variable names so u can use them later w/o having to modify
    -declare prototype for each function def
    -limit the num of local variables to below 10 if possible
    -do not refer to main recursively
  12. 123 comments to add in a function-what the function does
    -what the function needs(parameter arguments)
    -what the function returns

Información

Descripción
Fichas sobre week7-, creado por hasdfhfsd gsdhhgsdh el 29/10/2018.
Creado por
hasdfhfsd gsdhhgsdh · oct 2018
Actualizado
30 oct 2018
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?