Q:

Which one of the following declarations and definitions would you put in a header? In a source file? Explain why

0

Which one of the following declarations and definitions would you put in a header? In a source file? Explain why.

(a) inline bool eq(const BigInt&, const BigInt&) {...} 

(b) void putValues(int *arr, int size);

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The declarations of both functions should be put in a header. The definition of function `eq` should be put in the same header with declaration. The definition of function `putValues` may be put in a source file.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now