temporary variable

why we use temporary variable in programs??

Replies

  • Subathra Prem kumar
    Subathra Prem kumar
    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
    thank u fo gvng proper ans......!!!...hv a nice day
  • Vishal Sharma
    Vishal Sharma
    Surya.Cse
    thank u fo gvng proper ans......!!!...hv a nice day
    Stop using "SMS language"

You are reading an archived discussion.

Related Posts

I have to give seminar..but have a lot of fear about english..can u gv me any suggition???
Hello CEans As we all know crazyengineers.com is most informatic technical portal. I want to know that how can i get hired at crazyengineers.com, What technology should i need to...
The launch of Xiaomi Mi5 has been delayed multiple times. It was tipped in June this year that the Mi4 successor is all set to get a November release date....
I'm wondering if there's a way to use WHERE condition in SQL more than once. Here's what I'm trying to achieve:- Get the output in following format:- [Username] [Article Contributed...
Is any one had given Assistant Vigilance officer's exam of MAHADISCOM?