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 |
Why we use void main in c?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
what is the most appropriate way to write a multi-statement macro?
What is the significance of scope resolution operator?
0 Answers Agilent, ZS Associates,
What does volatile do?
What are pragmas and what are they good for?
what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string
Write a program to swap two numbers without using third variable in c?
Can an array be an Ivalue?
#include<stdio.h> void main() { int =1; printf("%d%d%d",a++,++a,++a); }
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?