can u write a program in C, which does not use = (eqaul)or
any arithmatic assignment(like -=,+=,*= etc) operator to
swap to number?
Answer Posted / musa
swapping x and y using z as intermediary
memcpy(&z, &x, sizeof(x));
memcpy(&x, &y, sizeof(x));
memcpy(&y, &z, sizeof(x));
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is a rvalue?
What is const volatile variable in c?
What is a stream water?
Where we use clrscr in c?
Write a program to implement queue.
What are different storage class specifiers in c?
how could explain about job profile
Why #include is used in c language?
Difference between constant pointer and pointer to a constant.
What is c preprocessor mean?
What is a null pointer in c?
Why can't I perform arithmetic on a void* pointer?
What is the acronym for ansi?
What is a pointer and how it is initialized?