* and + have same precedence so right to left associatvty for first
printf..and the rest printf statements are similar
On Wed, Aug 24, 2011 at 2:54 PM, Avinash LetsUncomplicate.. <
avin.2...@gmail.com> wrote:
> ++ is simply post increment will increment after use
> so *s is printed in first print
++ is simply post increment will increment after use
so *s is printed in first printf.. precedence doesnt matter coz its a
single operand on which post increment has to be done also no copncept
of associativity i think associativity is for same precedence
operators ..
Avinash
NIT allahabad
-
+1 to ADITI.
Sanju
:)
On Mon, Aug 22, 2011 at 2:51 PM, Ashish Sachdeva wrote:
> for the 1st printf i hv this explanation:
> precedence of ++ is greater then * ... but associativity of both of
> them is right to left...
> thats why dereferenced takes place 1st and then the pointer is
> incr