Please help me in solving this problem.. If a=5 and b=10 a=++b; what is the value of a? What is the difference between pre increment and post increment?
sort by best latest
a=++b resolves to 11, both for "a" and "b"
a=b++ results in 10, but incrementing b by 1 after the assignment
If you need further clarification, see here:
You can help the HubPages community highlight top quality content by ranking this answer up or down.
Anagha V Mahishi (anagham) 4 years ago
Thanks for the answer..
for further clarification visit my hub u will get a clear idea on c language and you will be expert
Copyright © 2018 HubPages Inc. and respective owners. Other product and company names shown may be trademarks of their respective owners. HubPages® is a registered Service Mark of HubPages, Inc. HubPages and Hubbers (authors) may earn revenue on this page based on affiliate relationships and advertisements with partners including Amazon, Google, and others.
Copyright © 2018 HubPages Inc. and respective owners.