what is the difference between postfix and prefix unary
increment operators?
Answer Posted / tarun kumar
In prefix operator In postfix operator
#include<iostream.h> #include<iostream.h>
#include<coino.h> #include<coino.h>
void main() void main()
{ {
int i=10; int i=10;
int j=++i; int j=i++;
cout<<j; cout<<j;
getch(); getch();
} }
OUTPUT:11 OUPUT:10
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is ponter?
What are the back slash character constants or escape sequence charactersavailable in c?
What does typedef struct mean?
Can we change the value of constant variable in c?
What is 02d in c?
Write a C program in Fibonacci series.
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Explain which function in c can be used to append a string to another string?
Why pointers are used?
Why pointers are used in c?
What is the difference between malloc() and calloc()?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
How can I recover the file name given an open stream or file descriptor?
Why c is known as a mother language?
Does c have function or method?