CMSC216 Final (100% Errorless Answers)
Copy over files with .o into 216 folder correct answers cp -r *.o ~/216 pwd correct answers Gives you the entire directory location compiling executables with gcc correct answers gcc testing.c -o change the permissions of testing.c to rwx for all permissions correct answers chmod 777 testing.c linking a certain position in memory to a keyword using ln -s correct answers ln -s 216/projects/project1 project1 Compressing a gzip correct answers tar -czf grep_ grep_example Uncompressing a gzip correct answers tar -xzf grep_ Creating a file using tar and two text files correct answers tar -cf Using grep to find a certain word correct answers grep TODO *.c Example of piping correct answers EngToSpan | SpanToFrench memcpy correct answers Copies n number of characters from the source to the destination memmove correct answers Same as memcpy but does not have to worry about overflow memset correct answers Sets n number of characters to a source. strcat correct answers appends the const source to the end of the destination How to create function pointers correct answers int (*functionPtr)(int, int); functionPtr = &addInt; Creating enums correct answers enum year {Jan, Feb, March}; Jan = 0, Feb = 1, March = 2 Difference from Unions and Structs correct answers Unions have all of their elements sharing memory. You can only access one element at one time. Structs you can access all of the elements. Benefit of using a shared library correct answers Much less space used. All executables share one library
Written for
- Institution
- CMSC216
- Course
- CMSC216
Document information
- Uploaded on
- September 22, 2023
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
copy over files with o into 216 folder
Also available in package deal