_____ 20. The following C preprocessor directive contains: #define pi=3.14159; A
ID: 668823 • Letter: #
Question
_____ 20. The following C preprocessor directive contains: #define pi=3.14159; A. a value assigned to a variable B. a value set equal to a variable C. a single syntax error D. two syntax errors B 21. What function in the standard C library header file, #include , is to input data from the keyboard? A. fscanf B. scanf C. fscan D. ffscanff B 22. What action will the n n sequence perform in a print statement? A. double space horizontally B. double space vertically C. single space vertically D. nothing will happen _____ 23. Given the following program segment. how will the output appear? double, amount = 32171. 5346; printf( ?%9.3f ,amount); A.32171.534 B.32l71.535 C.32,171.534 D.32,171.535 _____ 24. What is the computational result of the following expression: (2/5)*3.0/2 A. 0.6 B. 6.0 C. 0.0 D. 0.06Explanation / Answer
20) B a value set equal to variable..as its value is fixed and must not be changed throughout the program whenever there is a refrence to a Pi in the program a substitution will be made for that refrence 21) scanf is used to input data from the keyboard. 22) B double space vertically 23) A
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.