Rose-Hulman CSSE 432 - Study Notes (103 pages)

Previewing pages 1, 2, 3, 4, 5, 6, 7, 48, 49, 50, 51, 52, 53, 54, 97, 98, 99, 100, 101, 102, 103 of 103 page document View the full content.
View Full Document

Study Notes



Previewing pages 1, 2, 3, 4, 5, 6, 7, 48, 49, 50, 51, 52, 53, 54, 97, 98, 99, 100, 101, 102, 103 of actual document.

View the full content.
View Full Document
View Full Document

Study Notes

103 views

Other


Pages:
103
School:
Rose-Hulman Institute of Technology
Course:
Csse 432 - Computer networks

Unformatted text preview:

Day 01 Introduction to C 1 Saving Dyknow notes Save on the server Bring a thumb drive and save it on the drive at the end of class Can access from anywhere Will have to install Dyknow on that machine Must connect to the network Don t have to connect to the network to access notes Will have to install Dyknow on that machine Download from http www dyknow com download DyKnow Client 5 0 x86 Version 5 0 70 The dyknow server is dyknow cs rose hulman edu Create a cshrc file prompt emacs cshrc Create aliases for common commands After making changes for the changes to take effect immediately prompt source cshrc Why learn C after Java Both high level and low level language Better control of low level mechanisms Performance better than Java Java hides many details needed for writing OS code But Memory management responsibility Explicit initialization and error detection More room for mistakes 4 Goals of this tutorial To introduce some basic C concepts to you so that you can read further details on your own To warn you about common mistakes made by beginners 5 Creating an executable Source http www eng hawaii edu Tutor Make 1 2 html 6 Types of files C source files c C header files h Object files o Executable files typically no extension by default a out Library files a or so 7 External library files libname a or libname so Special functionality is provided in the form of external libraries of ready made functions Ready compiled code that the compiler merges or links with a C program during compilation For example libraries of mathematical functions string handling functions and input output functions Look for the library files under usr lib and header files under usr include 8 Example 1 What is the output of this program include stdio h include myheader h int main printf Hello World n t and you n print out a message return 0 9 Summarizing the Example include stdio h include header file stdio h No semicolon at end Small letters only C is case sensitive int main is the only code



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?