nikhil ramteke
s,b+..u cn..
watch the following code:-
#include<conio.h>
#include<iostream.h>
int main()
{
int c=0,a=0,b=0;
clrscr();
cout<<"c="<<c++<<"\n";
cout<<"c="<<c<<"\n";
b=a++ +c++ +c++;
cout<<"a="<<a<<"\n";
cout<<"b="<<b <<"\n";
cout<<"c="<<c;
getch();
return 0;
}
o/p:-
c=0
c=1
a=1
b=2
c=3
plz tell about the last two values....
thanks in adavance
#include<conio.h>
#include<iostream.h>
int main()
{
int c=0,a=0,b=0;
clrscr();
cout<<"c="<<c++<<"\n";
cout<<"c="<<c<<"\n";
b=a++ +c++ +c++;
cout<<"a="<<a<<"\n";
cout<<"b="<<b <<"\n";
cout<<"c="<<c;
getch();
return 0;
}
o/p:-
c=0
c=1
a=1
b=2
c=3
plz tell about the last two values....
thanks in adavance