From 91d8db04c2b01f52d5b799ff93768d546fd24e2b Mon Sep 17 00:00:00 2001 From: rakesh Date: Fri, 5 Oct 2018 12:59:28 +0530 Subject: [PATCH] Practical file questions --- .../CPP- Practical File Questions.docx | Bin 0 -> 17889 bytes pointers/new_function.cpp | 36 ++++++++++++++++++ pointers/self_referenceial.cpp | 17 +++++++++ structure_pointer.cpp | 26 +++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 Notes_Assignment/CPP- Practical File Questions.docx create mode 100644 pointers/new_function.cpp create mode 100644 pointers/self_referenceial.cpp create mode 100644 structure_pointer.cpp diff --git a/Notes_Assignment/CPP- Practical File Questions.docx b/Notes_Assignment/CPP- Practical File Questions.docx new file mode 100644 index 0000000000000000000000000000000000000000..27ee654dac9c316e0559b1a81995ec3cb75d887b GIT binary patch literal 17889 zcmeHv1#=`xl68rhnOn@vYB96aVrFJ$W@e@qGc&iCxy4e88CuNrY36oscIVcU%!fKoD`5TSi^2T;aRzN>`_+Q-vV(a?;3fRo|f?M-|_(u z6y}{z_r4-2fYn-DgsfaXIy5nttrTVrLX2pkhp) z<{RmVYJ5xNeJ75(_*x-)VUA}@x3Z1#Im!x zj`VbYoc~Wn{}=1!zjQq+VNDW505;?TY*T;4n|%$MXl`XgJkOQr6eKA949FFJqHwjl ztKdt!{F=_e?cuoGVrF3G{MQn0@EU#fh1}&#J+VzoH|v&22zm7p&5Qt3II*c(a~s=5 zdhYn7JnksQiu|315CIZiA`|A?0+Z8$kDl3U0hiD7RI~r^&hH295c!Nr4wk`Ag zg*)L7-N=|=8mK&|@aY>b=PVEn9R#P9eD~p+uLOkZH0a)*FG7J0^k%%DM(cm-NJDod z9@J+^GY9~H3xEW2wRJF}|1U)`vNd$J{g%H`>0HumKPdS=}CH)sBI5Uw#KP=kg4ZSxC}gvAK~~yGBQMHz%dn9e43E$*^+nD^1=#6S}Al zCV?8rui0AP)D#eVcJ~`f_=~mFFV0A4aM)ToTU!^~W%C`eJoA??%Y)!xaNj;?j47~L zx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fc(8N=9=a(UI?~-hJpMXP(0xd|Zi@Tv7$hD?-eK2B z_%42c3mH{Pclj?BrEbeBFP=p9`2sjZlqfnb41d+%L^0e5Mub zut8M{S0i2e+9KQxz%*wsWv3HG_Eb;G!U@bv_-&9d-6Z^&q|fg1NmEMcwu7P~5LrA9 zIc7R^mk55vH^eXtS?ld{UHzXc?)Xxe^xo&sy!{6U{I3pxzMb9w+5b+*w+;Iu|{ygrP=nmD?lmQD_FT=VJ)WfT06FgHXEF*y44 z+V4m;O2pYub_gn&R#^jsD;zb1$I-e1ZJqOO)n9}yQ`Q!r) zO|P4C7WZJA2}b0#NxT9WgeEp9AB8@(wqhcvMNnKx&LtO2? z$E1P37C<0i+D`)XKmV7-KWD-}um9nnE##&C9pK+H?EfkF$F<^9-To!t{_leSo_74N zg43Tt2mik$mSelH~04M@_)C&f60&X{6qfVZ1Ugb|9yG?OBw*E<@=ZB|6{S2mje5o UUH|~>=LhI>hK_ww +using namespace std; +struct student{ + int roll; + char name[30]; + float fees; +}; + +int main(){ + student *s; + cout<<"\n\n\n Size of s :"<>s->roll; + + cout<<"\n Enter name :"; + cin>>s->name; + cout<<"\n Enter fees :"; + cin>>s->fees; + + cout<<"\n\n\n Size of s :"<roll; + cout<<"\n Name :"<name; + cout<<"\n fees :"<fees; + + delete(s); + + cout<<"\n Roll No :"<roll; + cout<<"\n Name :"<name; + cout<<"\n fees :"<fees; + + return 0; +} diff --git a/pointers/self_referenceial.cpp b/pointers/self_referenceial.cpp new file mode 100644 index 0000000..31a74c1 --- /dev/null +++ b/pointers/self_referenceial.cpp @@ -0,0 +1,17 @@ +#include +using namespace std; + +struct student{ //self referenceial structure + int roll; + char name[30]; + float fees; + student *ptr; +}; + +int main(){ + + student + return 0; +} + + diff --git a/structure_pointer.cpp b/structure_pointer.cpp new file mode 100644 index 0000000..2be3d0b --- /dev/null +++ b/structure_pointer.cpp @@ -0,0 +1,26 @@ +#include +using namespace std; +struct student{ + int roll; + char name[30]; + float fees; +}; + +int main(){ + student s ={10,"Swapnil",3456.96}; + cout<<"\n Roll No :"<roll; + cout<<"\n Name :"<name; + cout<<"\n fees :"<fees; + + cout<<"\n Size of s1 :"<