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 hashing in c language?
What is the difference between scanf and fscanf?
Differentiate between a structure and a union.
What does the error message "DGROUP exceeds 64K" mean?
What is keyword with example?
Is c language still used?
What is the use of getch ()?
What are the advantages and disadvantages of a heap?
Combinations of fibanocci prime series
Why is sprintf unsafe?
Explain logical errors? Compare with syntax errors.
What is the general form of a C program?
Is array a primitive data type in c?
explain how do you use macro?
What is static function in c?