what is the diffrence between ++x , x++ pleaaaaase ???
Answer Posted / chandrakant rohi
++x
it means pre-increament ,before execute the x first it increment
Ex int x=10;
printf("%d",++x);
ans=11
and
x++ means post_increament,first excute the statment and then increment ;
Ex
int x=10;
printf("%d",x++);
ans =10;
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...
how to write a program that opens a file and display in reverse order?
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
How to swap two ASCII numbers?
create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
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
how to diplay a external image of output on winxp by using c & c++,
how to take time as input in the format (12:02:13) from user so that controls remains between these columns?
write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation
Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).
Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.
write a program that can LOCATE and INSERT elements in array using c++ programming languages.
what mean void creat_object?in public class in this code class A{ public: int x; A(){ cout << endl<< "Constructor A";} ~A(){ cout << endl<< "Destructor A, x is\t"<< x;} }; void create_object(); void main() { A a; a.x=10; { A c; c.x=20; } create_object(); } void create_object() { A b; b.x=30; }
write a program using 2 D that searches a number and display the number of items 12 inputs values input 15,20, 13, 30, 38, 40,16, 18, 20 ,18 ,20 enter no. to search : 20