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
How can I change the size of the dynamically allocated array?
What is difference between scanf and gets?
Is c high or low level?
What is the purpose of scanf() and printf() functions?
Explain high-order and low-order bytes.
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is the -> in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is difference between constant pointer and constant variable?
How can I do peek and poke in c?
What is a program flowchart?
given post order,in order construct the corresponding binary tree
Write a program to find the biggest number of three numbers in c?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.