What will be the output of
x++ + ++x?
Answer Posted / sujan
let x=1,here it starts with x++, so first x takes value 1 and then it increments to 2.. later ++x.. here x is incremented first i.e.,x=3 and then added to previous value..ie., 1+3
o/p is 4
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain what is a program flowchart and explain how does it help in writing a program?
What are runtime error?
What is the advantage of a random access file?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What does static variable mean in c?
Place the #include statement must be written in the program?
Explain modulus operator. What are the restrictions of a modulus operator?
Write a program for Overriding.
What is sizeof return in c?
Explain the use of 'auto' keyword
What is spark map function?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is dynamic memory allocation?
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]
What are the similarities between c and c++?