Sum of numbers program

In this video, while executing the file there are 2 files in directory of same name.
1.sum_of_number.cpp
2.sum_of_number ???

why do we have 2 files here? and what is the extension for other?

having 2 file is dependent on type of environment bhaiya is using
like i am using VS code it just creates a a.exe file and the original .cpp file

this is not actually be a matter of concern to you. it depends on the compiler

not very sure about this as well