Are following ways are same.(Considering the evaluation time)
if(Condition1)
{
//code1
}
else
{
//code2
}
condition1 ? code1 : code2
Are they just syntactically different?
It may seem a stupid question.But I want to clear my doubt.