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 the purpose of type declarations?
in iso what are the common technological language?
What is maximum size of array in c?
What are the advantages and disadvantages of a heap?
Why does everyone say not to use gets?
how can f be used for both float and double arguments in printf? Are not they different types?
How to draw the flowchart for structure programs?
What is else if ladder?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is a file descriptor in c?
Is c is a procedural language?
Explain how are 16- and 32-bit numbers stored?
What is scanf_s in c?
Can an array be an Ivalue?