CSCI 1730 FINAL REVIEW (LAMARCA)
1. signal.h- Answer - used for signal handling
2. stdio.h- Answer - used for input and output operations. ex- Answer - printf()
3. string.h- Answer - used for string manipulation. ex- Answer - strlen()
4. stdlib.h- Answer - used for general utilities such as memory management
5. constants- Answer - expressions with a fixed value
6. #define- Answer - any occurrence of the identifier in the code is interpreted as a replacement
7. Short circuit evaluation- Answer - only evaluates whats necessary
from left to right. logical and- Answer - if leftmost is false, then the statement is false
logical or- Answer - if leftmost is true, then the statement is true
8. memory map- Answer - a diagram that shows the layout of a program's memory
9. pass by value- Answer - what is passed to the function are copies of the values of the arguments
10. pass by reference- Answer - what is passed to the function is the argument itself
11. -Wall- Answer - includes warning flags
12. Makefile macro variables- Answer - variables that are substituted in
13. MakeFile make targets- Answer - represent the file that you want to build
14. size of char- Answer - 1 byte
15. Size of int- Answer - 2 bytes
16. size of short- Answer - 2 bytes
17. size of long- Answer - 8 bytes
18. void pointers- Answer - the absence of a type (generic); cannot be dereferenced
19. *p++- Answer - *(p++)
1/
15
, 20. ++*p- Answer - ++(*p)
21. *++p- Answer - *(++p)
22. const int * ptr- Answer - nonconstant pointer to constant data
23. int const * ptr- Answer - nonconstant pointer to constant data
24. int * const ptr- Answer - constant pointer to nonconstant data
25. const int * const ptr- Answer - constant pointer to constant data
26. double * arr[7]- Answer - an array of 7 pointers to double values
27. double (*arr) [4]- Answer - a pointer to an array with 4 double values
28. malloc, realloc, calloc, free- Answer - used to dynamically
allocate memory. malloc - allocates # of specifiec bytes
realloc - increases/decreases memory by # of bytes
2/
15
1. signal.h- Answer - used for signal handling
2. stdio.h- Answer - used for input and output operations. ex- Answer - printf()
3. string.h- Answer - used for string manipulation. ex- Answer - strlen()
4. stdlib.h- Answer - used for general utilities such as memory management
5. constants- Answer - expressions with a fixed value
6. #define- Answer - any occurrence of the identifier in the code is interpreted as a replacement
7. Short circuit evaluation- Answer - only evaluates whats necessary
from left to right. logical and- Answer - if leftmost is false, then the statement is false
logical or- Answer - if leftmost is true, then the statement is true
8. memory map- Answer - a diagram that shows the layout of a program's memory
9. pass by value- Answer - what is passed to the function are copies of the values of the arguments
10. pass by reference- Answer - what is passed to the function is the argument itself
11. -Wall- Answer - includes warning flags
12. Makefile macro variables- Answer - variables that are substituted in
13. MakeFile make targets- Answer - represent the file that you want to build
14. size of char- Answer - 1 byte
15. Size of int- Answer - 2 bytes
16. size of short- Answer - 2 bytes
17. size of long- Answer - 8 bytes
18. void pointers- Answer - the absence of a type (generic); cannot be dereferenced
19. *p++- Answer - *(p++)
1/
15
, 20. ++*p- Answer - ++(*p)
21. *++p- Answer - *(++p)
22. const int * ptr- Answer - nonconstant pointer to constant data
23. int const * ptr- Answer - nonconstant pointer to constant data
24. int * const ptr- Answer - constant pointer to nonconstant data
25. const int * const ptr- Answer - constant pointer to constant data
26. double * arr[7]- Answer - an array of 7 pointers to double values
27. double (*arr) [4]- Answer - a pointer to an array with 4 double values
28. malloc, realloc, calloc, free- Answer - used to dynamically
allocate memory. malloc - allocates # of specifiec bytes
realloc - increases/decreases memory by # of bytes
2/
15