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
to find the closest pair
Where in memory are my variables stored?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is a void pointer? When is a void pointer used?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What does sizeof function do?
What is the description for syntax errors?
Can true be a variable name in c?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What does s c mean in text?
Explain the difference between getch() and getche() in c?
What is the difference between declaring a variable and defining a variable?
Write a simple code fragment that will check if a number is positive or negative.
What do you mean by recursion in c?
Differentiate abs() function from fabs() function.