Lecture 2: Review - PowerPoint PPT Presentation

1 / 3
About This Presentation
Title:

Lecture 2: Review

Description:

How to make sure that one writes portable C programs? ... How to make sure that a header file (e.g. a.c) is included at most once in a program? ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 4
Provided by: wfa
Category:
Tags: how | lecture | make | makefiles | out | review | teach | to

less

Transcript and Presenter's Notes

Title: Lecture 2: Review


1
Lecture 2 Review
  • Key based authentication, what is it and what can
    you do with it?
  • What kinds of C programs are considered portable?
    How to make sure that one writes portable C
    programs?
  • How to access command line arguments in a C
    program?
  • What are environment variables and how to access
    them in a C program?

2
Lecture 2 Review
  • In lect2/makefile4,
  • which rules are target rules? Which are inference
    rules?
  • What happen when we run make f makefile4 demo?
  • Compare makefile3 and makefile4,
  • Name two scenarios that the two makefiles behave
    differently.
  • which is a better makefile?

3
Lecture 2 Review
  • How to make sure that a header file (e.g. a.c) is
    included at most once in a program?
  • What is wrong with the following define
    statement?
  • define sum(a, b) a b
  • Use sscanf to get from the output of who the
    login-name, the date, and the login machine name?
Write a Comment
User Comments (0)
About PowerShow.com