int *p=(int *)1000;
Blogger Tips and Tricks. Get computer Tips and tricks. C, Java , Python,Ruby,Perl,assembly and more programming tutorials for free.
Why programs ? Programming is nothing but making the computers think the same way a human thinks. Programs are made for obtaining a specific solution which can even be solved by humans which when solved by us may consume time..
a=a + a++ 3 1 1a+a=2 and the post increment will increment the value of 'a' so it will result in a=3.(to understand increment operator see this post also Lparts,Pre and post,Post 18).
a=a+ ++a;This expression is manipulated as follows:
a = a+ ++a; 8 4 4Pre increment will increment the value of a first so 'a' has now 4. and a+a is 8 is assigned to a. so a=a+a=8.