Is it possible to put a function inside an if-else
statement?
if (condition)
{
// function here
}
else
{
// function here
}
Do you mean calling a function or defining a function.
I meant calling a function
Of course.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.