I am quiet new to the C++ programming language and i want to clear a doubt that i am having regarding the if statement in c program. Can you tell me whether it is better to use the if statement with it else part or with out the else part consider the following
if (x=a)
{}
else
if (x=b)
{}
or
if (x=a)
{}
if (x=b)
{}
which one of the following is better
Bookmarks