how to swap 2 numbers in a single statement?

Answer Posted / ushagva1

a=a+b-(b=a);

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new line escape sequence?

797


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2671


How can I find out how much free space is available on disk?

620


Can we declare function inside main?

558


How can I change the size of the dynamically allocated array?

623






What is meant by realloc()?

666


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1302


What is pragma c?

601


formula to convert 2500mmh2o into m3/hr

487


in linking some of os executables are linking name some of them

1645


Explain how can type-insensitive macros be created?

564


Tell me when would you use a pointer to a function?

596


What is a lookup table in c?

618


Is c easier than java?

562


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

649