COMP 206 Lecture Notes - Lecture 15: Scanf Format String, Printf Format String, Carriage Return
Document Summary
The practice of concealing a file, message, image, or video within another file, message, image, or video. Has an illustrious past both in an out of computer systems. We can see how c allows for this as we learn about reading and writing files, operations on character strings, and integer data, and manipulating the bits, bytes, nibbles scanf reads formatted data from stdin. If input does not match format, it will then return error. First argument to scanf is a format string (will try to match format string to input string) scanf also expects pointer to some integer memory. If the user inputs the correct format sting, then the given integer will be stored in the address. Cons: %s not safe against buffer overflow (will write beyond the end of my array), writing into other areas of memory, virus-like behavior) Automatic handling of white space, newlines, crating impropoerly handled strings. W open for output (overwrite or create file)