私が書くと出力はどうなりますか
C ++ではif(5)
問題なく実行されますが、C#では同じように実行できません。
if(func()){} //in C# it doesn't runs Why how does C# treats void and how in Turbo C++
void func()
{
return;
}
if(null==null){}//runs in C#
編集
if(printf("Hi"){} //will run and enter into if statement
if(printf(""){}//will enter into else condition if found.
この質問は、TurboCompilerを知らない人を対象としたものではありません。