how to swap two nubers by using a function with pointers?
Answer / reshma
void swap(int *a, int *b)
{
int tmp;
tmp=*a;
*a=*b;
*b=tmp;
}
or
void swap(int *a, int *b)
{
*a=*a^*b;
*b=*a^*b;
*a=*a^*b;
}
Is This Answer Correct ? | 10 Yes | 1 No |
Explain argument and its types.
Program to simulate second clock
How many levels deep can include files be nested?
write the program to find multiplication of 2-D matrix??????????
What are the applications of c language?
How many identifiers are there in c?
Why is #define used?
What is wrong with this declaration?
What is volatile
What is sizeof c?
what is differnence b/w macro & functions
Which one would you prefer - a macro or a function?