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 does == mean in texting?
Who invented bcpl language?
What are header files why are they important?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Explain what is the difference between a string and an array?
Do you know the use of 'auto' keyword?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What is the difference between variable declaration and variable definition in c?
What are the features of the c language?
What are actual arguments?
how many key words availabel in c a) 28 b) 31 c) 32
Is it better to use malloc() or calloc()?
Write a program to print fibonacci series without using recursion?