what is the diffrence between ++x , x++ pleaaaaase ???
Answer Posted / sailaxmi
++x is pre-increment
say for example
the value of a=1
int a,r;
r= ++a;
now the value of "a" is incremented to 2 n then assigned to r...
x++ is post increment
say for exmaple
the value of a is 3
int a,r;
r=a++;
the value of a(initially 3) will be assigned to r..... n
then the value of "a" gets incremented to 4.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
write a program that reverses the input number of n.Formulate an equation to come up with the answer.
Implement a command console for changing settings on a particular object. The command console should allow you to enter a string and will return the response (very similar to a terminal session). The commands are as follows: SET propertyname=newvalue will change the target object’s member named “propertyname” to have a value equal to “newvalue”. If the input value is incompatible (i.e. an int being set to a string), print out an appropriate error message. GET propertyname will print out the current value of the target object’s member named “propertyname”. GET * will print out a list of all target object members and their current values. The system should be extensible for future commands and should accept an arbitrary object, such that another developer could insert another object into the system and rely on the command console to get and set the properties correctly.
develop a program to calculate and print body mass index for 200 employees
U hv to enter a range from a and b and search hw many no. of times a pattern n. occurs between the range a and b. Eg :i/p:enter range :0 100 Enter pattern: 13 o/p: the no. times 13 occurred betwwn 0 to 100:1 Eg :i/p:enter range :100 1000 Enter pattern: 13 o/p: the no. times 13 occurred betwwn 100 to 1000: (in this 13,113,131,132,133…139,213,313,…913 all these will be counted)
write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
Code for Easily Using Hash Table?
write a program to convert temperature from fa height into celcius and vise versa,use modular programming
write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.
Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).
How can I Draw an ellipse in 3d space and color it by using graph3d?
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
i don't know about working of nested for loop can any one help me
write a program that can LOCATE and INSERT elements in array using c++ programming languages.
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)