Are there default values when we declare variables in c++

as it can be seen from the output of the program … it seems the default values of int is 0, float is 0, char is ‘/0’…
can someone explain… are there really default values of variables in cpp… or the variables are declared with garbage values?

PS:
I am asking this doubt as on online IDE’s it gives the default values as mentioned above but in my local computer terminal it gives garbage values for some of the uninitialized variables (gcc version 8.1 ) of the code given above.

Maybe all the stuff is compiler dependent :thinking:

Well here is the output of the same code in my machine.