List out user define function category and explain any one from them with example.
.•♫•♬•❤HOW ARE YOU GUY'S ❤•♬•♫•.
Answers
Answer:
There can be 4 different types of user-defined functions, they are:
- Function with no arguments and no return value.
- Function with no arguments and a return value.
- Function with arguments and no return value.
- Function with arguments and a return value.
Explanation:
Function with no arguments and no return value
Such functions can either be used to display information or they are completely dependent on user inputs.
Below is an example of a function, which takes 2 numbers as input from user, and display which is the greater number.
greatNum(); // function call
return 0;
}
void greatNum() // function definition
{
int i, j;
printf("Enter 2 numbers that you want to compare...");
scanf("%d%d", &i, &j);
if(i > j) {
printf("The greater number is: %d", i);
}
else {
printf("The greater number is: %d", j);
}
Be happy prince☺️❤️☺️
l hope it will help u ☺️☺️☺️
Answer:
Planet Nine is a theoretical, undiscovered giant planet in the mysterious far reaches of our solar system. The presence of Planet Nine has been hypothesized to explain everything from the tilt of the sun's spin axis to the apparent clustering in the orbits of small, icy asteroids beyond Neptune.
Pluto
Pluto: Once a planet, now a dwarf planet
Once the ninth planet from the sun, Pluto is unlike other planets in many respects
here is your answer
have a lovely day ahead
thanks
take care and keep smiling on your face