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 |
What's wrong with "char *p; *p = malloc(10);"?
What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?
What does dm mean sexually?
What are the types of functions in c?
Explain the Difference between the New and Malloc keyword.
Program to simulate second clock
Can we declare function inside main?
Is that possible to store 32768 in an int data type variable?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.
Explain how can I write functions that take a variable number of arguments?
main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&height,&age); if((age<=20)&&(ht>=5)) {printf("She loves you");} else {printf("She loves you");} }