Declarations and Initializations

Q1: Is it true that a function may have several declarations, but only one definition?

A Yes

B No

ANS:A - Yes

Yes, but the function declarations must be identical. Example:

#include<stdio.h>

void Display();
void Display();
void Display();

void Display()
{
   printf("Weclome to AptitudeCrack.com..!");
}

int main()
{
    Display();
    return 0;
}

//Output:
Weclome to AptitudeCrack.com..!



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.