Question asked by Surya.Cse in #Coffee Room on Nov 6, 2015
why we use temporary variable in programs?? Posted in: #Coffee Room
Temporary variables let you store and reuse the value of expressions. They can be used to improve the performance or readability of methods.Surya.Csewhy we use temporary variable in programs??
Eg: if you take a swap function,
Int temp, a,b;
In this case temp variable store the value of variable A and assign it to another variable B.
In a=b; ------- we assign the b value in a.
Hope this is helpful
thank u fo gvng proper ans......!!!...hv a nice day
Stop using "SMS language"Surya.Csethank u fo gvng proper ans......!!!...hv a nice day