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
How can I find out the size of a file, prior to reading it in?
What is unsigned int in c?
How can you allocate arrays or structures bigger than 64K?
How do you use a 'Local Block'?
Where are the auto variables stored?
Explain data types & how many data types supported by c?
What is #pragma statements?
What is getch?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Explain the use of bit fieild.
Explain what are compound statements?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is meant by recursion?
Why C language is a procedural language?
How are variables declared in c?