If a C function is declared with prototype void f(), but then defined with prototype void f(int a), then the compiler will signal an error about the inconsistency in the prototypes.
Added by Dan M.
Step 1
The prototype `void f()` indicates that the function `f` takes no parameters, while the definition `void f(int a)` indicates that the function `f` takes one integer parameter. Show more…
Show all steps
Your feedback will help us improve your experience
Vysakh M and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
If the following function gets compiled, what error would be raised? (A) Function should be defined as int fun(int $x$, double $y$ ) (B) Missing parenthesis in return (C) Redeclaration of $x$ (D) All of these
Programming and Data Structures
Functions
The type of a parameter whose type is omitted in a function definition is
Eric C.
Write error message given by c compiler during program compilation, if you use %d to print float variable.
Shu N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD