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


Please Help Members By Posting Answers For Below Questions

a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

607


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

649


What is variable and explain rules to declare variable in c?

547


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?

972


What is sizeof array in c?

588






What are the salient features of c languages?

616


How can I copy just a portion of a string?

808


Why is structure important for a child?

599


What is difference between static and global variable in c?

529


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1121


What is the value of uninitialized variable in c?

562


Why is C language being considered a middle level language?

646


Are local variables initialized to zero by default in c?

541


What are preprocessor directives?

666


What is static memory allocation? Explain

625