Surya.Cse
Surya.Cse
Branch Unspecified
06 Nov 2015

temporary variable

why we use temporary variable in programs??
Subathra Prem kumar

Subathra Prem kumar

Branch Unspecified
06 Nov 2015
Surya.Cse
why we use temporary variable in programs??
Temporary variables let you store and reuse the value of expressions. They can be used to improve the performance or readability of methods.
Eg: if you take a swap function,

Int temp, a,b;
Temp =a;
A=b;
B=temp ;

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
Surya.Cse

Surya.Cse

Branch Unspecified
06 Nov 2015
thank u fo gvng proper ans......!!!...hv a nice day
Vishal Sharma

Vishal Sharma

Computer Science
08 Nov 2015
Surya.Cse
thank u fo gvng proper ans......!!!...hv a nice day
Stop using "SMS language"

Share this content on your social channels -

Only logged in users can reply.