what is the purpose of the following code, and is there any
problem with the code?
void fn(long* p1, long* p2)
{ register int x = *p1;
register int y = *p2;
x ^= y;
y ^= x;
x ^= y;
*p1 = x;
*p2 = y;
}
Answer Posted / senthil
exchanges "long data type" values referenced by pointers p1 and p2
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Is null equal to 0 in sql?
4. main() { int c=- -2; printf("c=%d",c); }
Can you please explain the difference between syntax vs logical error?
What is the use of ?
What is null in c?
What is the significance of an algorithm to C programming?
What 'lex' does?
What is bubble sort in c?
What is string length in c?
What is self-referential structure in c programming?
What does the error message "DGROUP exceeds 64K" mean?
Not all reserved words are written in lowercase. TRUE or FALSE?
What are the differences between Structures and Arrays?
Explain c preprocessor?