Search:

Type: Posts; User: iammilind; Keyword(s):

Search: Search took 0.00 seconds.

  1. Thread: funtion swap

    by iammilind
    Answers
    9
    Views
    4,485

    Re: funtion swap

    No, 1st of all, it's just an illusion that you don't use temporary. When u do a ^= b, the XOR of 2 variables is indeed stored in Accumulator (which is a temporary). So, this operation will be slower...
  2. Thread: funtion swap

    by iammilind
    Answers
    9
    Views
    4,485

    Re: funtion swap

    Well, Swetha's method is proper, but only meant for integers.
    Following is the swap function for any type like: int, char, structure, pointers etc. anything.

    template<class T>
    void swap(T...
  3. Answers
    2
    Views
    3,447

    Re: Program output

    Ouput is :

    f is NOT 1.0n

    This is because floating point numbers doesn't have accuracy in certain cases (unlike 'double'). The interpretation inside the machine will be different than what we...
Results 1 to 3 of 3
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact