ECS 30 Lecture Notes - Lecture 28: Data File, Scanf Format String, Standard Streams

33 views4 pages
Lecture 28
Alias
- used to hide the actual data type from client
- modified as needed
- anonymous
Alias for scalar types
Code:
Alias for structure/enums
Create an alias to an existing type
Shares exactly the same properties
as underlying type
Used to hide the actual data
Alternative declarations
- define the typedef at the same
time as structure
Define only typedef on unnamed
type
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows page 1 of the document.
Unlock all 4 pages and 3 million more documents.

Already have an account? Log in

Document Summary

Used to hide the actual data type from client. Shares exactly the same properties as underlying type. Define the typedef at the same time as structure. Only use typedef when you need it. Programmer wont know what object is using because typedef hides it. When we put this file as input you see the sequence of characters. The new line is rendered on the screen. If you want to open the hard drive or ssd you can see the sequence of characters and the control characters streams! Stdout and stderr are the programs output and error streams. Stdout can be redirected nto a file with. Stderr can also be redirected in its own file printf to stdout = print (from beginning) This tells where to print the output function. File: stdin, stdout and stderr are pointers internally. Fgets(): reads from a file pointer, line by line.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents