Discussion :: Declarations and Initializations
-
Is it true that a function may have several declarations, but only one definition?
Answer : Option A
Explanation :
Yes, but the function declarations must be identical.
Example:
#include
void Display();
void Display();
void Display();
void Display()
{
printf("Weclome to Freshergate.com..!");
}
int main()
{
Display();
return 0;
}
//Output:
Weclome to Freshergate.com..!
Be The First To Comment