Here is a little program calling an external function. It has 3 files:
the main function called callMySin.c:
the function implementation mysin.c
and the include file mysin.h
Here is how I try to compile it: What am I doing wrong?
Can you write a Makefile to compile this program correctly?
I have a program named myProg which takes 4 parameters and which I execute as follows:
./myProg uli 65 ike 35
What is the value of:
argc
argv[0]
argv[5]
(argv[3])[1]
Write a piece of code that makes sure that the user enters exactly 4 parameters
How can I check if the first parameter is the string “uli” and the second one the string “ike”?
In the following Makefile which, builds the hello world program:
which elements are
macros
targets
dependencies
What do $@ and $^ mean and, in the above Makefile example, into which values do these expand to?
I | Attachment | History | Action | Size | Date | Who![]() |
Comment |
---|---|---|---|---|---|---|---|
![]() |
Makefile.png | r1 | manage | 8.9 K | 2017-10-23 - 08:10 | UnknownUser | |
![]() |
callMySinC-1.png | r1 | manage | 14.1 K | 2017-10-24 - 09:25 | UnknownUser | |
![]() |
compileErr.png | r1 | manage | 36.4 K | 2017-10-23 - 08:10 | UnknownUser | |
![]() |
mysinC-1.png | r1 | manage | 14.2 K | 2017-10-24 - 09:25 | UnknownUser | |
![]() |
mysinH.png | r1 | manage | 2.3 K | 2017-10-23 - 08:10 | UnknownUser |