how to swap 4 number without using temporary number?

Answer Posted / sandeep

a=a^b;
b=a^b;
a=a^b;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of main( ) in c language?

611


Explain how to reverse singly link list.

601


What is a dynamic array in c?

587


What is c language used for?

551


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

610






What are the differences between new and malloc in C?

604


Explain is it better to bitshift a value than to multiply by 2?

705


Can you pass an entire structure to functions?

688


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1578


Is array name a pointer?

600


Explain what is the use of a semicolon (;) at the end of every program statement?

724


What is the difference between union and anonymous union?

831


What does return 1 means in c?

579


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

620


State the difference between realloc and free.

623