<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5175500551577786215</id><updated>2026-06-05T16:02:02.802+06:00</updated><category term="C Programming"/><category term="Data Structure"/><category term="Stack"/><category term="Array"/><category term="Array Tutorial"/><category term="c_arrays"/><title type='text'>Programmers&#39; Page</title><subtitle type='html'>~“Truth can only be found in one place: the code.” &#xa;― Robert C. Martin, Clean Code: A Handbook of Agile Software </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://recursiveman.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://recursiveman.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Recursive_man</name><uri>http://www.blogger.com/profile/05143032395533115192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5175500551577786215.post-8133026312601456141</id><published>2020-11-14T10:39:00.000+06:00</published><updated>2020-11-14T10:39:00.273+06:00</updated><title type='text'>Upcoming Plan!!</title><content type='html'>&lt;p&gt;বেশ অনেকদিন ব্রেক এর পর আবার ফিরছি নতুন উদ্দ্যমে।&lt;/p&gt;&lt;p&gt;সাথে নিয়ে ফিরছি Js এবং Ruby র সিরিয়াল পোস্ট নিয়ে৷ সাথেই থাকুন। ধন্যবাদ।&lt;/p&gt;&lt;p&gt;#Happy_coding&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://recursiveman.blogspot.com/feeds/8133026312601456141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://recursiveman.blogspot.com/2020/11/upcoming-plan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/8133026312601456141'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/8133026312601456141'/><link rel='alternate' type='text/html' href='https://recursiveman.blogspot.com/2020/11/upcoming-plan.html' title='Upcoming Plan!!'/><author><name>Recursive_man</name><uri>http://www.blogger.com/profile/05143032395533115192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bangladesh</georss:featurename><georss:point>23.684994 90.356331</georss:point><georss:box>-4.6252398361788458 55.200081 51.995227836178842 125.512581</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5175500551577786215.post-3365957149295255230</id><published>2020-05-03T02:38:00.001+06:00</published><updated>2020-05-03T02:40:01.469+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Stack"/><title type='text'>স্ট্যাক পর্ব - ২ (Algorithm + Implementation)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
আজকে আমরা স্ট্যাকের অপারেশন গুলো ভিজুয়ালাইজ করার চেষ্টা করবো।&lt;br /&gt;
আমরা মূলত PUSH(X), POP( ), DISPLAY( ) এই তিনটা ফাংশন নিয়ে আলোচনা করবো।&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img alt=&quot;Stacks in C++&quot; height=&quot;242&quot; src=&quot;https://appdividend.com/wp-content/uploads/2019/10/Stacks-in-C.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;400&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;চিত্রঃ স্ট্যাক&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
আমরা শুরু থেকে শুরু করছি। সর্বপ্রথমে আমরা ধরে নিই যে আমাদের স্ট্যাক টা খালি। তাহলে আমাদের TOP এর ভ্যালু নাল থাকবে। অর্থাৎ TOP= -1.&lt;br /&gt;
এছাড়াও আমাদের স্ট্যাকটিতে সর্বোচ্চ N টি ভ্যালু রাখতে পারবো। অর্থাৎ &lt;b&gt;MAX_SIZE= N.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;b&gt;PUSH(X):&lt;/b&gt;&lt;br /&gt;
এখন আমি PUSH(X) এই অপারেশন টা চালাবো। অর্থাৎ স্ট্যাকে X ভ্যালুটি ইনসার্ট করতে চাচ্ছি। এর জন্যে প্রথমেই আমাদের চেক করতে হবে STACKOVERFLOW হচ্ছে কিনা!!&lt;br /&gt;
অর্থাৎ যদি &lt;b&gt;TOP&amp;lt; ( MAX_SIZE - 1) &lt;/b&gt;হয় তাহলে আমরা PUSH(X) অপারেশন টা করতে পারবো। কিন্তু তার আগে TOP র ভ্যালু এক বাড়িয়ে নিবো এবং স্ট্যাকের TOP তম ইন্ডেক্সে X ভ্যালু এসাইন করে দিবো। অর্থাৎ,&lt;br /&gt;&lt;b&gt;
&amp;nbsp;TOP++;&lt;br /&gt;
&amp;nbsp;STACK[ TOP ] = X ;&lt;/b&gt;
&lt;br /&gt;
অন্যথায় &lt;b&gt;TOP=( MAX_SIZE - 1)&lt;/b&gt; হয়ে গেলে STACKOVERFLOW হয়ে যাবে !!&lt;br /&gt;
&lt;br /&gt;
নিচে এর অ্যালগোরিদমটি দিলাম।&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;PUSH(Value) :&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;1. Start
2. IF( TOP &amp;lt; MAX_SIZE - 1 ) then goto Step 3 Else goto Step 6
3.  TOP = TOP + 1
4.  STACK[ TOP ] = Value
5.  PRINT &quot;Successfully Inserted&quot;
6. ELSE  PRINT &quot;STACK OVERFLOW&quot;
7. End &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;&lt;b&gt;POP( ) :&lt;/b&gt;
প্রথমে এখানে আমরা চেক করবো Stack Underflow হচ্ছে কিনা। &lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #e8e6e3; color: #e8e6e3; font-family: &amp;quot;times new roman&amp;quot;; white-space: normal;&quot;&gt;অর্থাৎ &lt;b&gt;TOP = -1 &lt;/b&gt;কিনা। যদি&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;TOP = -1&amp;nbsp;&amp;nbsp;&lt;/b&gt;হয় তাহলে বুঝবো স্ট্যাক খালি। অর্থাৎ&amp;nbsp;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;STACK UNDERFLOW. &lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;আর যদি &lt;b&gt;TOP &amp;gt; -1&lt;/b&gt; হয় তবে প্রথমে Temporary Memory তে Stack র ভ্যালুটি স্টোর করবো। তারপর TOP র ভ্যালু কমিয়ে দিবো। এরপর স্ক্রিনে শো করে দিবো যে &lt;/span&gt;&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;Temporary Memory &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;র ভ্যালুটি সফলভাবে ডিলিট হয়ে গেছে।&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #e8e6e3; color: #e8e6e3; font-family: &amp;quot;times new roman&amp;quot;; white-space: normal;&quot;&gt;নিচে এর অ্যালগোরিদমটি দিলাম।&lt;/span&gt;
POP( ) :
1. START
2. IF ( TOP = -1) then goto Step 3 Else goto Step 4&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;3.    PRINT &quot;STACK UNDERFLOW. Stack is Empty&quot; and goto Step 07&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;4. ELSE  Temp = STACK[ TOP ]
5.            TOP = TOP - 1&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;6.            PRINT &quot;Temp is Successfully Deleted &quot;   &lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;               &lt;i&gt;[এখানে Temp বলতে Temp র অভ্যন্তরের ভ্যালুটি প্রিন্ট করতে বলা হয়েছে ]&lt;/i&gt;
7. End&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;&lt;b&gt;DISPLAY( ) : &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;ডিসপ্লে করার সময় প্রথমে চেক করবো STACK খালি কিনা। অর্থাৎ TOP= -1 কিনা। যদি হয় তবে &quot;STACK Empty&quot;. অন্যথায় একটা লুপ চালাবো ০ তম ইন্ডেক্স থেকে TOP তম ইন্ডেক্স পর্যন্ত এবং প্রিন্ট করতে থাকবো &lt;b&gt;Stack[ i ] &lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #e8e6e3; color: #e8e6e3; font-family: &amp;quot;times new roman&amp;quot;; white-space: normal;&quot;&gt;নিচে এর অ্যালগোরিদমটি দিলাম।&lt;/span&gt;
DISPLAY( ) :
1. START 
2. &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;IF ( TOP = -1 ) goto Step 04 else goto Step 04&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;3.     &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;PRINT &quot;STACK is Empty&quot; and goto Step &lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;4. &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;ELSE  i&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt; = 0&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;5.     &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;While( i &amp;lt;= TOP ) goto Step 06 else goto step 07&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;6.         PRINT STACK[ i ]
7.         i = i + 1
8. END&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;আশা করছি এর কোডটি ইমপ্লিমেন্ট করে ফেলতে পারবেন। তবুও সহায়তার জন্যে নিচে আমার করা কোডের লিঙ্কটি দিচ্ছি। &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;লিঙ্ক: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif;&quot;&gt;&lt;a href=&quot;https://github.com/sayanta28/DSA/blob/master/Stack.c&quot;&gt;https://github.com/sayanta28/DSA/blob/master/Stack.c&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Practice&amp;nbsp;Problem:&amp;nbsp;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://onlinejudge.u-aizu.ac.jp/courses/lesson/8/ITP2/2/ITP2_2_A&quot;&gt;https://onlinejudge.u-aizu.ac.jp/courses/lesson/8/ITP2/2/ITP2_2_A&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif;&quot;&gt;2.&amp;nbsp;&lt;a href=&quot;https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/3/ALDS1_3_A&quot;&gt;https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/3/ALDS1_3_A&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color: #ffffff; color: white; font-family: helvetica, arial, sans-serif;&quot;&gt;3.&amp;nbsp;&lt;a href=&quot;https://onlinejudge.org/index.php?option=com_onlinejudge&amp;amp;Itemid=8&amp;amp;page=show_problem&amp;amp;problem=614&quot;&gt;https://onlinejudge.org/index.php?option=com_onlinejudge&amp;amp;Itemid=8&amp;amp;page=show_problem&amp;amp;problem=614&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://recursiveman.blogspot.com/feeds/3365957149295255230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://recursiveman.blogspot.com/2020/05/algorithm-implementation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/3365957149295255230'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/3365957149295255230'/><link rel='alternate' type='text/html' href='https://recursiveman.blogspot.com/2020/05/algorithm-implementation.html' title='স্ট্যাক পর্ব - ২ (Algorithm + Implementation)'/><author><name>Recursive_man</name><uri>http://www.blogger.com/profile/05143032395533115192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5175500551577786215.post-3172775790570862768</id><published>2020-04-29T23:19:00.002+06:00</published><updated>2020-05-03T02:14:43.798+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Stack"/><title type='text'>স্ট্যাক - পর্ব ১ (থিয়ুরী)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
আজকে আমরা আরেকটি লিনিয়ার ডাটা স্ট্রাকচার স্ট্যাক নিয়ে আলোচনা করবো। স্ট্যাক দেখতে অ্যারের মতোই কারন স্ট্যাকে ডাটা গুলো লিনিয়ারিটি মেইনটেইন করে থাকে।&amp;nbsp;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;স্ট্যাকের ইনপুট প্রসেস অ্যারের মতোই ; ইনডেক্সিং করে থাকে।&amp;nbsp;&lt;/span&gt;কিন্তু স্ট্যাকের মূল বৈশিষ্ট্য হলো &lt;b&gt;স্ট্যাক LIFO ধর্ম মেনে চলে&lt;/b&gt;।&amp;nbsp;&lt;b&gt;LIFO-&amp;gt; Last In Fast Out&lt;/b&gt;. অর্থাৎ যে ডাটাটি স্ট্যাকে সবার শেষে আসবে তার উপর প্রথমে অপারেশন চালানো হবে।&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQrplcHdagKH5SzZo-ZF3PRa0E8PjbXEUJsXSocKmBie-HZFkq2&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;700&quot; height=&quot;182&quot; src=&quot;https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQrplcHdagKH5SzZo-ZF3PRa0E8PjbXEUJsXSocKmBie-HZFkq2&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Stack&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;
চিত্রে দেখা যাচ্ছে একটি ৫ সাইজের( Stack[5] ) স্ট্যাক আছে। যার ইনডেক্সিং শুরু হয়েছে শূন্য থেকে এবং শেষ হয়েছে N-1 এ । এছাড়াও স্ট্যাকটাই ৪টা ডাটা আছে ৷ সবচেয়ে উপরের ডাটা বা শেষ ডাটাটিকে পয়েন্ট করে থাকে Top Pointer । স্ট্যাক লিস্টের বর্তমানে কি পরিমান ডাটা আছে তা বুঝার জন্যে এই পয়েন্টার ব্যবহার করা হয়। এর মধ্যে চলুন স্ট্যাকের কিছু টার্মিনোলজির সাথে পরিচিত হয়ে আসি।&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;&lt;b&gt;
১.&amp;nbsp; PUSH:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;
স্ট্যাকে কোনো ডাটা ইনপুট করাকে PUSH বলে। সাধারন অ্যারের ইনপুটের নিয়ম অনুসারে স্ট্যাকে পুস করতে হয়৷&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;&lt;b&gt;
২. POP:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;
স্ট্যাক থেকে কোনো ডাটা ডিলিট করাকে POP বলা হয়৷ সাধারনত স্ট্যাকে যে ডাটাটি সবার শেষে আসে সেটাকেই শুধুমাত্র POP বা ডিলিট করা হয়। অর্থাৎ শেষ ইনপুট হওয়া ডাটাটির উপর অপারেশন চালাতে হয়।&lt;/div&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRsgXWD9QQheuAwjQe96tGUEGP0VdDcxoC9Q-PuSI25AMPc1Mh8&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;352&quot; data-original-width=&quot;501&quot; height=&quot;224&quot; src=&quot;https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRsgXWD9QQheuAwjQe96tGUEGP0VdDcxoC9Q-PuSI25AMPc1Mh8&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;চিত্রঃ PUSH, POP&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;&lt;b&gt;৩. Top Pointer:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;Top পয়েন্টার এখানে কাউন্টের কাজ করে। স্ট্যাক এর মেমোরিতে কতটি ডাটা পুস (PUSH) হলো সেই হিসাব রাখে TOP। কোনো ডাটা পুস হলেই আমরা সাথে সাথে Top র মান এক বাড়িয়ে দিবো।&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;স্ট্যাকের শেষে কোন ডাটাটি পুস হলো সেটাও আমরা Top pointer দিয়ে লুকআপ করতে পারবো। সেক্ষেত্রে স্ট্যাকের Top তম ইনডেক্স চেক করলেই হবে। এই Top পয়েন্টার দিয়ে কম্পিউটারকে বুঝানো সম্ভব হয় যে স্ট্যাক কোন ডাটা আগে এসেছে আর কোন ডাটাটি পরে। শুরুতে যখন স্ট্যাকে কোনো ডাটা থাকবে না তখন আমরা ইনিশিয়ালি Top কে নাল করে দিবো। (এখানে নাল বলতে আমরা -1 ধরে নিবো)&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;এছাড়াও Top দিয়ে আমরা ওভারফ্লো এবং আন্ডারফ্লো চেক করতে পারি।&amp;nbsp;&lt;i&gt;(নিচে&amp;nbsp;&lt;b&gt;ওভারফ্লো এবং আন্ডারফ্লো&amp;nbsp;&lt;/b&gt;টপিকগুলো আলোচনা করেছি)&lt;/i&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;&lt;b&gt;৪. Stack Overflow:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;স্ট্যাকে যদি আমরা স্ট্যাটিক মেমোরি এলোকেশন করি তাহলে আমাদের জন্যে স্পেস টা লিমিটেড হয়ে যাবে।&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;আলোচনার সুবিধার্থে ধরি আমরা স্ট্যাটিক ভাবে স্ট্যাকে ৫০ টি ডাটা রাখতে পারবো।&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;এখন স্ট্যাকে ডাটা পুস করার আগে সব সময় আমরা প্রতিবার চেক করবো যে Top এর ভ্যালু ৫০ হয়ে গিয়েছে কিনা৷ যদি ৫০ হয়ে যায় তখন আমরা&amp;nbsp; show করাই দিবো Stackoverflow হয়ে যাচ্ছে৷ অর্থাৎ আর ডাটা পুস করা সম্ভব না ৷&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;যদি আমরা ডায়নামিক মেমোরি এলোকেশন করি সেক্ষেত্রে Stackoverflow ঘটার সম্ভবনা নাই৷ কারন এটা নির্ভর করবে র‍্যামের উপর। আর বর্তমানের র‍্যামের At a time huge dataset নিয়ে কাজ করতে পারে।&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif; text-align: left;&quot;&gt;&lt;b&gt;৫. Stack Underflow:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;স্ট্যাকে যখন আমরা ডাটা POP করতে যাবো তখন আমাদের প্রথমে চেক করতে হবে স্ট্যাকে ইতিমধ্যে কোনো ডাটা আছে কিনা। যদি ডাটা না থাকে তাহলে আমরা ডিলিট করতে পারবো না বা POP অপারেশন চালাতে পারবো না এবং সাথে সাথে শো করে দিবো স্ট্যাক আন্ডারফ্লো। তাহলে বলুন তো কম্পিউটার কে কিভাবে বুঝবে স্ট্যাকে ডাটা শেষ হয়ে গেছে কিনা?&amp;nbsp;&lt;b&gt;&lt;i&gt;( ১ মিনিট ভাবুন; কারন উপরে এটা বলে এসেছি )&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;সোজা হিসাব। TOP নাল কিনা চেক করবো। অর্থাৎ TOP = -1 কিনা। যদি TOP র ভ্যালু -1 র বেশি হয় তাহলে POP করা যাবে। অর্থাৎ আন্ডারফ্লো হওয়ার মতো পরিস্থিতি এখনো তৈরী হয়নি।&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: sans-serif;&quot;&gt;আজকে এই পর্যন্ত রাখছি। পরবর্তী পর্বে এর কোডিং ইমপ্লিমেন্টেশন নিয়ে আলোচনা করবো। ধন্যবাদ।&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://recursiveman.blogspot.com/feeds/3172775790570862768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://recursiveman.blogspot.com/2020/04/stackds.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/3172775790570862768'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/3172775790570862768'/><link rel='alternate' type='text/html' href='https://recursiveman.blogspot.com/2020/04/stackds.html' title='স্ট্যাক - পর্ব ১ (থিয়ুরী)'/><author><name>Recursive_man</name><uri>http://www.blogger.com/profile/05143032395533115192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5175500551577786215.post-4981747494694104173</id><published>2019-08-04T13:59:00.000+06:00</published><updated>2019-08-24T23:35:18.528+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><category scheme="http://www.blogger.com/atom/ns#" term="Array Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="C Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="c_arrays"/><title type='text'>Array / অ্যারে </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: black; color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;আজকে আমরা অ্যারে ডাটা স্ট্রাকচার নিয়ে এখানে আলোচনা করবো। &lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;তার আগে আমাদের বুঝতে হবে ডাটা স্ট্রাকচার জিনিসটা কি? &lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;ডাটা স্ট্রাকচার বলতে বুঝায় ডাটাগুলোকে কোনো একটা নিয়মে সাজানো যাতে করে আমরা ডাটাগুলোকে কার্যকরীভাবে ব্যবহার করতে পারি। &lt;/span&gt;&lt;span style=&quot;letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;অ্যারে - ও হচ্ছে ডাটা গুলোকে সাজানোর একটা নিয়ম। এখানে ডাটা গুলোকে পরপর পাশাপাশি রেখে সাজানো হয় অর্থাৎ সহজ অর্থে লিনিয়ার ভাবে ডাটা গুলো সাজানো থাকে। নিচের চিত্রে বিস্তারিত: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5OWxX9nywxM_U_ajCEVqewQlmpAaoOX7bBosWMaMP8e1DNEeMV2OqoDs6-IHJMqQDZRl3Yh0hWDlfRrEZtPJ2KZnFWwSC6pBhfAJ7yKLMggF1cfcKRaYnjHuHS3g-1k8lAiMyVyTYwS4/s1600/Arrays.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;173&quot; data-original-width=&quot;592&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5OWxX9nywxM_U_ajCEVqewQlmpAaoOX7bBosWMaMP8e1DNEeMV2OqoDs6-IHJMqQDZRl3Yh0hWDlfRrEZtPJ2KZnFWwSC6pBhfAJ7yKLMggF1cfcKRaYnjHuHS3g-1k8lAiMyVyTYwS4/s640/Arrays.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Fig-1&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: black; color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: black; color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;এখানে আমরা একটা মেমোরির চিত্র তুলে ধরার চেষ্টা করেছি। যেখানে দেখা যাচ্ছে মেমোরিতে ৯ টি ডাটা পাশাপাশি সাজানো রয়েছে। &lt;/span&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;এইযে এভাবে পাশাপাশি করে লিনিয়ারিটি মেনে ডাটাগুলোকে সাজানে হয়েছে ; এই নিয়মটাকে অ্যারে বলে। &lt;/span&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;চিত্রে দেখা যাচ্ছে ডাটাগুলোকে নাম্বারিং বা ইনডেক্সিং করা উচিত হয়েছে। &lt;/span&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;অ্যারের ইনডেক্সিং শুরু হয় শূন্য(০) থেকে এবং শেষ হয় n-1 এ। &lt;/span&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;অর্থাৎ আমার কাছে যদি n টি ডাটা থাকে তাহলে ইনডেক্স থাকবে ০ থেকে n-1 টি। &lt;/span&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;আর প্রতিটি ইনডেক্সে আমরা একটি করে ডাটা রাখতে পারবো। &lt;/span&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;আর অ্যারে টার দৈর্ঘ্য হবে n।  &lt;/span&gt;&lt;br style=&quot;font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;তাহলে যদি অ্যার তে ৯টি ডাটা রাখতে চাই তাহলে ৯ দৈর্ঘ্যের একটা অ্যারে নিতে হবে যেখানে ইনডেক্সিং শুরু হবে শূন্য থেকে এবং শেষ হবে (৯-১)=৮ এ। &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;Source Code:&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;int main()&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  int arr[10];&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;/* এখানে আমি বলে দিয়েছি যে ১. অ্যারে আমরা শুধুমাত্র ইন্টিজার টাইপের ডাটা রাখতে পারবো, ২. অ্যারের নাম arr,  ৩. arr নামক অ্যারেটার সাইজ ১০.  */&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  int n, i ;&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  scanf(&quot;%d&quot;,&amp;amp;n);&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;/* n দিয়ে বুঝাচ্ছি কয়টা ডাট আমি ইনপুট নিতে ইচ্ছুক অ্যারেতে! */&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  for(i=0 ; i&amp;lt;n ; i++)&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  {&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;    scanf(&quot;%d&quot;, &amp;amp; arr [i]);&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;/* এখানে আমরা লুপ চালিয়ে অ্যারতে ইনপুট নিয়েছি। এখানে i র ভ্যালু ০ তে ইনিশিয়েট করেছি কারন অ্যারের ইনডেক্স ০ থেকে শুরু হয় আর লুপ রিপিট হবে n সংখ্যক বার। কারন ০ থেকে n-1 র যোগফল n ই হয়। :p&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt; আপনি চাইলে এভাবে&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;scanf(&quot;%d&quot;, &amp;amp; a[0]) ; ইনডেক্স এভাবে ধরে ধরে ১০ বার ইনপুট নিতে পারেন। :p&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;*/&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  for( i=0; i&amp;lt;n ; i++)&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  {&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;    printf(&quot;%d &quot;,arr[i]);&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  }&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;/*এখানে আমরা অ্যারের ডাটা প্রিন্ট করার জন্যে লুপ ঘুরিয়েছি। */&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;  return 0;&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: black; letter-spacing: 0.1px;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;Sample Input 1:&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;5 &lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;4 3 7 5 8&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;Output:&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;4 3 7 5 8&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;Sample Input 2:&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;7&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;5 2 9 6 3 0 1&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;Output:&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;5 2 9 6 3 0 1&lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;আপনার অবশ্যই এটা কোডব্লকে রান করবেন এবং উপরের স্যাম্পল ইনপুট- আউটপুট গুলো টেস্ট করে দেখবেন ঠিকমতো আপনার কোড কাজ করছে কিনা। &lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;আর উপরের একটা প্রশ্নের উত্তর দেয়া বাকি ছিলো যে, অ্যারে তে কি সব ধরনের ডাটা রাখতে পারবো। উত্তরটা হ্যাঁ। সব ধরনের রাখতে পারবো। যেমন int, char, float etc. &lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;কিন্তু একসাথে শুধুমাত্র একধরনের ডাটায় রাখতে পারবো। &lt;/span&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;তাহলে আজকে আমরা অ্যার সম্পর্কে কিছুটা জানলাম আর অ্যারেতে ইনপুট নেয়া শিখলাম। &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;নিচে কিছু প্রবলেম দিচ্ছি উপরের জ্ঞানটা এপ্লাই করার জন্যে। সলভ করার চেষ্টা করতে থাকুন। সমস্যা হলে কমেন্টে জানান। &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;Problem :&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;a href=&quot;http://codeforces.com/group/MWSDmqGsZm/contest/219774/problem/A&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;A. Replacement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://codeforces.com/group/MWSDmqGsZm/contest/219774/problem/B&quot; style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;B. Positions in&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://codeforces.com/group/MWSDmqGsZm/contest/219774/problem/C&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;C. summation&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;a href=&quot;http://codeforces.com/group/MWSDmqGsZm/contest/219774/problem/D&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;D. lowest number&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://codeforces.com/group/MWSDmqGsZm/contest/219774/problem/E&quot; style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;E. Searching&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;br style=&quot;color: #e8eaed; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;color: #e8eaed; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;&quot;&gt;#Happy_Coding&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://recursiveman.blogspot.com/feeds/4981747494694104173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://recursiveman.blogspot.com/2019/08/array.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/4981747494694104173'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/4981747494694104173'/><link rel='alternate' type='text/html' href='https://recursiveman.blogspot.com/2019/08/array.html' title='Array / অ্যারে '/><author><name>Recursive_man</name><uri>http://www.blogger.com/profile/05143032395533115192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5OWxX9nywxM_U_ajCEVqewQlmpAaoOX7bBosWMaMP8e1DNEeMV2OqoDs6-IHJMqQDZRl3Yh0hWDlfRrEZtPJ2KZnFWwSC6pBhfAJ7yKLMggF1cfcKRaYnjHuHS3g-1k8lAiMyVyTYwS4/s72-c/Arrays.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5175500551577786215.post-2838628181199137783</id><published>2019-07-27T22:30:00.002+06:00</published><updated>2019-08-04T14:10:04.211+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Programming"/><title type='text'>How to create infinite loop in C:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We can create&lt;b&gt; infinite loop &lt;/b&gt;in C programming.&amp;nbsp;We will show here using &lt;b&gt;While loop&lt;/b&gt;.&lt;br /&gt;
Suppose we want to print the string &lt;b&gt;&quot;Bangladesh&quot;&lt;/b&gt; infinite number of time.&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Source Code:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;int main()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; while(1)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot;Banglasesh\n&quot;);&amp;nbsp; //Bangladesh will be print infinite number of time.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Thank You. :)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://recursiveman.blogspot.com/feeds/2838628181199137783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://recursiveman.blogspot.com/2019/07/how-to-create-infinite-loop-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/2838628181199137783'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/2838628181199137783'/><link rel='alternate' type='text/html' href='https://recursiveman.blogspot.com/2019/07/how-to-create-infinite-loop-in-c.html' title='How to create infinite loop in C:'/><author><name>Recursive_man</name><uri>http://www.blogger.com/profile/05143032395533115192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5175500551577786215.post-6766405529708784838</id><published>2019-07-27T20:08:00.001+06:00</published><updated>2019-08-04T14:10:27.203+06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Programming"/><title type='text'>Printing Hello World</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Using C printing Hello World:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;int main()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;Hello World\n&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://recursiveman.blogspot.com/feeds/6766405529708784838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://recursiveman.blogspot.com/2019/07/printing-hello-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/6766405529708784838'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5175500551577786215/posts/default/6766405529708784838'/><link rel='alternate' type='text/html' href='https://recursiveman.blogspot.com/2019/07/printing-hello-world.html' title='Printing Hello World'/><author><name>Recursive_man</name><uri>http://www.blogger.com/profile/05143032395533115192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>