what is the diffrence between ++x , x++ pleaaaaase ???
Answer Posted / dallasnorth40
++ before the variable increments the variable before the
value is taken/used.
++ after the variable takes/uses the value, then increments.
Given:
int x = 5;
int y = 0;
y = x++;
This will leave y = 5 and x = 6.
y = ++x;
This will leave y = 6 and x = 6.
| Is This Answer Correct ? | 27 Yes | 3 No |
Post New Answer View All Answers
Code for Easily Using Hash Table?
find level of following tree (state, parent) " J,D I,D H,C E,B F,B G,C B,A D,A C,A A,& K,E L,E L,F M,F N,G O,H P,I P,H Q,I R,J S,K U,P T,L
i don't know about working of nested for loop can any one help me
write a program that creates a sequenced array of numbers starting with 1 and alternately add 1 and then 2 to create the text number in the series , as shown below. 1,33,4,6,7,9,............147,148,150 Then , using a binary search , searches the array 100 times using randomly generated targets in the range of 1 to 150
Create a program to read two random data set in two files named data1.txt and data2.txt manifold contains integer numbers, whereas data2.txt file contains the float type numbers. Simpanlahmasing each into 2 pieces of data that is an array of type integer array and an array of type float, then calculate the average numbers in the second array.
Write a simple encryption program using string function which apply the substitution method.
write a program to convert temperature from fa height into celcius and vise versa,use modular programming
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)
How to swap two ASCII numbers?
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!!!)
Code for Method of Handling Factorials of Any Size?
how to diplay a external image of output on winxp by using c & c++,
solve the problem in the programming language C++"if a five digit number is input through the keyboard.Write a program to calculate the sum of its digits(hint: use the modulus operator)