programs of Inline function:
#include<iostream> using namespace std; class abc{ int a; public: void set_a(int a1){ a=a1; } inline int get_a(){ return a; } }; int main(){ abc st; st.set_a(20); cout<<st.get_a(); }
20
If you like code with vibhu and would like to contribute, you can also write an article using This link :
https://docs.google.com/forms/d/e/1FAIpQLScAmvlPvNUz35R-G0nc_zpRVP3o8xlhtFgC3aKPyLetX_RyXg/viewform?pli=1
OR mail your article to bibhutiswain990@gmail.com. See your article appearing on the code with vibhu main page and help other students.
0 Comments