@pkien I assume that you are asking for c++/c.These languages do not assign default values to variables and only memory chunk is assigned when you write statements like: int i; called declaration statements. Whatever value was there before in the memory is taken up by the variable.
You have to assign them with values as in statements like: i=1; etc.This is called initialization.
You can achieve both tasks in a single statement as int i=1;
Also note that these value will vary on different runs/machines.Effectively all are random.
pls upvote if you find it helpful.For any queries comment below.