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 |
wap to print "hello world" without using the main function.
What is file in c language?
When should the const modifier be used?
program for following output using for loop? 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
What is the general form of function in c?
how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *
write a program to display all prime numbers
What is the difference b/w Structure & Class?
print 1-50 with two loop & two print Statement
What is the use of ?: Operator?
What is the basic structure of c?
what is the hexidecimal number of 4100?