wat are the two methods for swapping two numbers without
using temp variable??
Answers were Sorted based on User's Feedback
Answer / shrikantauti
i dont know the methods but can give the code to swap values without temporary variable.
a b
a=a+b
b=a-b
a=a-b
Is This Answer Correct ? | 6 Yes | 0 No |
How can I generate floating-point random numbers?
can we write a program in c for printf and scanf without using header file stdio.h
What are control structures? What are the different types?
How can I list all of the predefined identifiers?
What are the different types of errors?
What are keywords in c with examples?
What is function pointer c?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
Does * p ++ increment p or what it points to?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
0 Answers Aspire, Infogain, TISL,