How to swap two variables, without using third variable ?

Answer Posted / yash

Answer no 12 is wrong. the logic fails when a=0;

Is This Answer Correct ?    44 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3123


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

500


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

1779


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2413


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2333






could you please send the program code for multiplying sparse matrix in c????

3076


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

3850


how to test pierrot divisor

2264


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2865


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4149


Sir... please give some important coding questions asked by product companies..

1801


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2026


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2141


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3030


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2265