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 / sunny
NO
Means we can give diff values give different answer.
like
we can give a=80,b=100
a=180,b=20,a=20
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
What does p mean in physics?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What are the different file extensions involved when programming in C?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is a c token and types of c tokens?
What does *p++ do? What does it point to?
can we implement multi-threads in c.
Does c have circular shift operators?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
List some of the dynamic data structures in C?
What is static and volatile in c?
What are dangling pointers? How are dangling pointers different from memory leaks?
about c language
What is a structure member in c?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]