I'm come from Java, i want to improve my skill in coding and knowledge of how it's work in deep and i figure that the best language for this is C the mother of all. I'm very excited about how it work c but now please raise me a doubt. Why in C first code don't work and the second yes?
P.s.: I'll skip few steps to speed the code and focus on problem. I'm study C99.
int a,b,c;
int sum = a+b+c;
print scanf ecc...
printf("%d", sum);
The result it will be -1234567 ecc..
And using this code it will work wonderful, this is the mean of a imperative programming?
int a,b,c;
int sum;
print scanf ecc...
sum = a+b+c;
printf("%d", sum);
Sorry for bad english is not my first language, i will improve also that :°D