Thesre is no operator ** in Cor other C based languages. Though it can be used with pointer to a pointer to get orginal value.
Such as
int *p;
*p=q;
int **s;
*s=p;
**p=**p+5;//this will increase q by 5
Now there is -- operator, that is decrement operator in C and all other C based language, which works just like ++.
that is like a++ increases a by 1, a-- decreases by1.
Is there any arithemetic operator like ** or -- in C language?
nope, that's why c++ is called that---that's where those operators came in. you'll have to just do it manually if you have to program in C: c = c-1;
can you not use c++? here's a good free compiler for it if you want: http://www.bloodshed.net/dev/devcpp.html
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment