How to swap values between two variables without using a
third variable?

Answer Posted / pinky

main()
{
int ia,b;

a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    120 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i create report in abap to insert data in table pa0002 using insert command

1712


give idea for creating screen in abap

1645


I m Abdullah Ansari compleated MCA from Jamia Hamdard,i have appeared the test of IBM on 2 august at oxford college of engineering Bangalore.waiting for hr round.. This is the first round for IBM.02/08/08 Paper consists of 4 sections 15 questions from matrices(time very less but no negative marking). 25 questions from series completion section (this section is very easy but negative marking) 15 questions from aptitude(little bit tough time limit 15 minute negative marking) 4th section is from computer science (c,c++,operating system,digital electronics ,basic question..) result came at 3 o'clock.i was selected... In interview they asked questions like 1 they asked about final yr project.. 2 what are dynamic and static memory location? 3 linked list and array difference between them. 4 what is function ? what is difference betwen function and inline function? 5 about structure 6 about binary tree, traversal, call by value. 7 storage class and many more basic questions..

2885


diffrence between oracle apps , .NET , SAP

1605


What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe

1556






Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,

1865


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1614


Write a program to find whether a given number is prime or not.

613


WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.

1852


Code for display the images from drive using vb 6.0?

4291


hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced

1563


what is delimiter in sas ?

1547


how do u handle table control inbdc explain the process in steps iwant the answer in urgent please forward this even i know how to explain there

1755


Do not use more than 3 nested IF. Use Evaluate statement in case of more IF required. Please give a detail explantion besides readability and clarity for Evaluate stmt.

1487


how does database connection using ADO.NET?

1522