Day 6 Recap Questions
- Is
fprintf(stdout, "xxx")
the same asprintf("xxx")
? - When should we use assertions instead of an if statement?
- What will happen if you pass an
int
variable to a function that takes adouble
as its parameter? What will happen if adouble
is passed to anint
parameter? - What is “pass by value”?
- How do you change the main function so that it can accept command-line arguments?