hi there.
I'm new to c++ programming.
First I have a question. If I "economy" variables, this make program run
faster? or nothing has changed?
ex
1)
int a,b,c,d;
cin>>a;
cin>>b;
cout<<"sum: "<<a+b;
cin>>c;
cin>>d;
cout<<"multiplication: "<<c*d;
2)
int a,b;
cin>>a;
cin>>b;
cout<<"sum: "<<a+b;
cin>>a;
cin>>b;
cout<<"multiplication: "<<a*b;
it makes difference because in the example2 I used only two variables and in example1 4 variables?
The question is if it have an effect in larger source codes.
?