extern void print(int *ia, int sz); void print(int *ia,int sz);
Answers
Answer:
41
Explanation:
Answer:
Both statements are declaring a function with the same name and parameters, but the second one is overwriting the first one.
Explanation:
The first statement is declaring a function named "print" that takes in two parameters: a pointer to an integer array and an integer sz. The keyword "extern" is used to indicate that this function is declared in a different source file and is being used in the current file.
The second statement is also declaring a function named "print" that takes in two parameters: a pointer to an integer array and an integer sz. This function is being declared in the current file.
It's important to note that in C++, the keyword 'extern' is optional. However, it is used to indicate that the variable or function is declared in another source file. In the second statement, the keyword extern is not needed.
More questions and answers:
https://brainly.in/question/21763817
https://brainly.in/question/33165614
#SPJ2