what is the difference between postfix and prefix unary
increment operators?
Answer Posted / bhupender
PER FIX UNARY INCREMENT OPERATION IS ++I
POSTT FIX UNARY INCREMENT OPERATION IS i++
WHEN WE USE THIS IN PROGRAM THE RESULT WILL
FOR ++i IS
LIKE TWO VERIABLE INT A=5 AND B=++A+5 THEN
IN RESULT IT SHOWS A =5 BUT B WILL 10(5+5)
BUT IN POST FIX IT
A=5 BUT B= A++ MEANS A+1 AND RESULT FOR B WILL 11
| Is This Answer Correct ? | 2 Yes | 10 No |
Post New Answer View All Answers
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What are the different types of endless loops?
what is a constant pointer in C
what is the syallabus of computer science students in group- 1?
How can I get random integers in a certain range?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Is int a keyword in c?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Are bit fields portable?
Why is c faster?
Differentiate between static and dynamic modeling.
How can I determine whether a machines byte order is big-endian or little-endian?
Explain how do you view the path?
What is the difference between a function and a method in c?
How do I copy files?