Answer Posted / geetha
i++ and ++i mean the same thing when they form statements
independently,they behave differently.
for example:
i=5;
d=++i;
in this case the value is i,d =6.bcoz first increment and
next assign the value
i=5;
d=i++;
in this case the value of d=5 and i=6.bcoz first assign the
value next increment and it will be change the value i=6.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Which is better oop or procedural?
What is c language in simple words?
What is the advantage of an array over individual variables?
Can the curly brackets { } be used to enclose a single line of code?
What is the difference between if else and switchstatement
What is the difference between ++a and a++?
Can we change the value of static variable in c?
What does printf does?
Do you have any idea about the use of "auto" keyword?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
what value is returned to operating system after program execution?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Can two or more operators such as and be combined in a single line of program code?
What tq means in chat?
How can I run c program?