write a program to swap Two numbers without using temp variable.
Answer Posted / george washington
Suppose:
x=1
y=3
Redefine:
x=x+y; //Or, x=1+3=4 and
y=x-y; // y=4-3=1 and
x=x-y; // x=4-1=3
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is main return c?
Can you add pointers together? Why would you?
What is getch () for?
What's the total generic pointer type?
Explain the difference between malloc() and calloc() in c?
What is volatile variable in c with example?
Describe the order of precedence with regards to operators in C.
What is the mean of function?
I have a varargs function which accepts a float parameter?
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.
a program that can input number of records and can view it again the record
What is the difference between null pointer and wild pointer?
What is huge pointer in c?
What does %c do in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;