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 c language and why we use it?
How can type-insensitive macros be created?
How can I automatically locate a programs configuration files in the same directory as the executable?
Explain c preprocessor?
What are the features of c languages?
Is void a keyword in c?
Can a pointer be volatile in c?
What is 2c dna?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What is the best way of making my program efficient?
What is exit() function?
What is a substring in c?
What is c programing language?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Why c is called object oriented language?