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 |
State two uses of pointers in C?
Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.
what is level of tree if leaf node is at level 4.please explain.
Explain what is a stream?
How to print %d in output
write a program that will print %d in the output screen??
Do you know null pointer?
What language is windows 1.0 written?
What are global variables and explain how do you declare them?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
hi , please send me NIC written test papers to sbabavalli@gmail.com
the format specified for hexa decimal is a.%d b.%o c.%x d.%u