Write a program to exchange two variaables without temp

Answer Posted / sandeep rehlan

Sir, please explain me the 3rd and 6th answer because both
are the orrect way of swapping of two variables.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the function of pragma directive in c?

869


What is difference between static and global variable in c?

747


What happens if a header file is included twice?

778


What are reserved words?

845


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1570


What is the deal on sprintf_s return value?

824


Give the rules for variable declaration?

904


Explain modulus operator. What are the restrictions of a modulus operator?

812


Here is a neat trick for checking whether two strings are equal

771


write a program to find out prime number using sieve case?

1843


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

1011


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

993


Why is it usually a bad idea to use gets()? Suggest a workaround.

1340


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

829


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

2348