Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain what is a program flowchart and explain how does it help in writing a program?

1143


What are runtime error?

1180


What is the advantage of a random access file?

1257


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3661


What does static variable mean in c?

1146


Place the #include statement must be written in the program?

1089


Explain modulus operator. What are the restrictions of a modulus operator?

1061


Write a program for Overriding.

1214


What is sizeof return in c?

1090


Explain the use of 'auto' keyword

1171


What is spark map function?

1210


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1158


What is dynamic memory allocation?

1390


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]

2534


What are the similarities between c and c++?

1140