Computer Science, asked by kashbugs27, 4 months ago

13. Give the prototype of a function show() which receives
string ch and an integer h and returns a character.

Answers

Answered by Anonymous
3

Answer:

Explanation:

The function MyFunction expects an integer argument to be on the stack or in a register when it is called. If the prototype is omitted, the compiler will have no way of enforcing this and MyFunction will end up operating on some other datum on the stack (possibly a return address or the value of a variable that is currently not in scope). By including the function prototype, you inform the compiler that the function MyFunction takes one integer argument and you enable the compiler to catch these kinds of errors and make the compilation process run smoothly. This feature was removed from the C99 standard, thus omission of a function prototype will result in a compile error.

Similar questions