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 program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What oops means?
Why c is called object oriented language?
What is a nested loop?
How can you determine the maximum value that a numeric variable can hold?
What is void pointers in c?
Write a program to implement queue.
Differentiate between declaring a variable and defining a variable?
What is meant by type casting?
why we wont use '&' sing in aceesing the string using scanf
What is meant by initialization and how we initialize a variable?
List out few of the applications that make use of Multilinked Structures?
Which are low level languages?
What does emoji p mean?
Why is a semicolon (;) put at the end of every program statement?