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 |
What is define c?
Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What are the types of macro formats?
Write a function to find the area of a triangle whose length of three sides is given
Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com
What does a run-time "null pointer assignment" error mean?
What language is c written?
void main() { int i=5; printf("%d",i++ + ++i); }
program to print upper & lower triangle of a matrix
How can I access a memory located at certain address?
How can I write a function that takes a format string and a variable number of arguments?