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
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is variable and explain rules to declare variable in c?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
What is sizeof array in c?
What are the salient features of c languages?
How can I copy just a portion of a string?
Why is structure important for a child?
What is difference between static and global variable in c?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is the value of uninitialized variable in c?
Why is C language being considered a middle level language?
Are local variables initialized to zero by default in c?
What are preprocessor directives?
What is static memory allocation? Explain