How to swap values between two variables without using a
third variable?
Answer Posted / shobha
int x=10,y=20;
x=x+y (10+20=30)
y=x-y (30-20=10)
x=x-y (30-10=20)
x=20,y=10
x and y vales are swaped.
| Is This Answer Correct ? | 51 Yes | 12 No |
Post New Answer View All Answers
I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.
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
what is an INI file?
write the a cl program with the following specification A. Accept 2 parameters-date and date type B. if date type is J then convert date to *MDY format C. if date type is M convert date to *JUL format 4.send a program message with the value of converted date Please explain for each with coding?
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.
Busy waiting is a method whereas a taskwaits for a given event by continiously checking for an event to occur. What is the main problem with this approach
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
Is class is a abstract datatype in java?
Colors specified with the notation
can we extend a class having only one parameterised constructor.Suggest the process to do it.
what is the difference between Windows application and Unix application?
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
Which language they use during interview?
Explain polymorphism. Provide an example.