The following C code results in an error. State whether this statement is true or false. [code]#include <stdio.h> void f(double b) {

Đức Linh

New member
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
 
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.
 

Tìm kiếm

Back
Top