Answer Posted / pedda
i++ and ++i mean the same thing but they have differently
i++ define post increment that means when the function
is completely after that the value is increment
Example:
i=4 find d=i++ + i; d=9 because i++
initially the value is 4 so 4+4=8 after tha the value d is
increment so finally d value is 9
++i define pre increment that means when the function
is starting increment
Example:
i=4 find d=++i +i; d=9 ++i value is increment
starting so ++i value is 5 so d value is 9
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
given post order,in order construct the corresponding binary tree
write a program fibonacci series and palindrome program in c
Why main is used in c?
What is the benefit of using an enum rather than a #define constant?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Explain the difference between #include "..." And #include <...> In c?
How do you generate random numbers in C?
Explain b+ tree?
Differentiate between static and dynamic modeling.
What is a rvalue?
Explain how do you view the path?
How do we print only part of a string in c?
What is s or c?
Explain how do you sort filenames in a directory?
Why should I use standard library functions instead of writing my own?