Đ Đức Linh New member Sep 18, 2021 #1 The following C code results in an error. State whether this statement is true or false. Code: #include <stdio.h> void f(double b) { printf ("%ld\n",b); } int main() { inline f(100.56); return 0; } A. True B. False
The following C code results in an error. State whether this statement is true or false. Code: #include <stdio.h> void f(double b) { printf ("%ld\n",b); } int main() { inline f(100.56); return 0; } A. True B. False
Đ Đức Linh New member Sep 18, 2021 #2 Answer: a Explanation: The above code will result in an error because we have used the keyword inline in the function call. Had the keyword inline been used in the function definition, the code would not have thrown an error. Upvote 0 Downvote
Answer: a Explanation: The above code will result in an error because we have used the keyword inline in the function call. Had the keyword inline been used in the function definition, the code would not have thrown an error.