Purpose of this blog is to make programming easy , weak programmers may get help from my blog i tried my best to post some of my codes in form of easiest approach, I think this blog is perfect c++ guide in form of online blog. please consult my all codes and suggest all of it with your class mates. Share experiences & knowledge with your juniors. Make yourself habitual to write different programs for 2 hours a day daily.
Monday, 25 March 2013
C++ Sum of two numbers using pointers
#include<iostream.h> void main(){ int n,m,*no,*mo; no=&n; mo=&m; cout<<"Enter the two numbers"; cin>>*no>>*mo; //*no=2; //*mo=3; cout<<"sum of two numbers via pointer is as under = "<<n+m;}