void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case
Answer Posted / sourabh
no,result will depend on the values of a nd b
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How can I recover the file name given an open stream or file descriptor?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
What is structure data type in c?
What is the concatenation operator?
What does nil mean in c?
What is volatile c?
What is local and global variable in c?
What are nested functions in c?
What is static and auto variables in c?
What is dynamic dispatch in c++?
Explain what are global variables and explain how do you declare them?
Explain function?
What is c language & why it is used?
Write a c program to demonstrate character and string constants?
What is the use of void pointer and null pointer in c language?