Pergunta de entrevista da empresa Perforce Software

Search for 2nd smallest number. What’s wrong in The lines of code.

Resposta da entrevista

Sigiloso

15 de abr. de 2024

We should not access non-static member inside static function.As we can call static function with scope resolution operator coincide it it won’t know for which object it should change the value of non static variable.