Question
Question 1: A preprocessor directive starts with what character or characters? Question 2: Preprocessor directives are carried out: just before a program is loaded into
Question 1: A preprocessor directive starts with what character or characters?
Question 2: Preprocessor directives are carried out:
just before a program is loaded into the processor.
just before a program is executed by the central processing unit (CPU).
just before a program is processed by the compiler.
just before the program's output is processed.
Question 3: Define a macro MAX_STUDENTS to be the value 100.
Question 4: Define a macro FALSE to represent the false value.
Question 5: Define a macro PANIC that expands to code that calls printf to print the word PANIC and then calls a function terminate (with no arguments).
Question 6: Write the include directive needed to allow use of the various I/O functions and values such fprintf and fgetc.
Question 7: Write the include directive that allows use of the function headers in the file myFuncs.h.
Question 8: What is the difference between using " " and < > in include directives?
Question 9: Briefly explain why is it not recommended to use define to create a constant.
Question 10: Define a macro of your choice and briefly explain its use.
In the above, Question 10 allows for multiple answers, so it should be used once 1 through 9 are exhausted, unless you feel have something to add. In that case please reply to the answer you would like to add to so we keep an organized thread.
Back to Module 7.
in c language
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started