Join Eduardo Corpeño for an in-depth discussion in this video Memory chunk operations example, part of C Standard Library.
- [Instructor] So once more,…here we have an example where I have a lot of codes…already written down for you,…and I will show you the lines where I have to fill in…with the functions I want to illustrate.…These are memset and memcopy.…So first in line five we have definition…for a constant, array size.…That's the size of the array, defined in line 14,…which is a byte array,…and those bytes are unsigned integers.…But remember, they are bytes.…
And my use of the memset function will be to initialize…that whole array to zero,…and for memcopy, I will copy one variable to another,…but this won't be regular variables, but compound variables.…I'm talking about the type definition in line seven,…which is a structure that contains an integer X…and a character C.…So it has two fields and this structure is called my pair.…
That's the type definition I just defined.…And so let's take a look at the main function.…So starting at line 13, we have a definition…for two variables of that type, my pair.…These are A and B.…And then, from lines 16 through 19,…
- Working with header files
- C constants and types
- Unformatted and formatted input/output
- Accessing files with C functions
- Generating random numbers
- Converting strings
- Sorting and searching for data
- Manipulating strings
- Using mathematical functions
Skill Level Intermediate
C++ Standard Template Librarywith Eduardo Corpeño2h 23m Advanced
1. The C Standard Library
2. Input and Output Library: stdio.h
3. General Purpose: stdlib.h
4. String Functions: string.h
5. Mathematical Functions: math.h
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.