CrazyEngineers
  • temporary variable

    Surya.Cse

    Member

    Updated: Oct 26, 2024
    Views: 1.3K
    why we use temporary variable in programs??
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Subathra Prem kumar

    MemberNov 6, 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
    Are you sure? This action cannot be undone.
    Cancel
  • Surya.Cse

    MemberNov 6, 2015

    thank u fo gvng proper ans......!!!...hv a nice day
    Are you sure? This action cannot be undone.
    Cancel
  • Vishal Sharma

    MemberNov 7, 2015

    Surya.Cse
    thank u fo gvng proper ans......!!!...hv a nice day
    Stop using "SMS language"
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register