<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MAKAUT Community - Recent questions in Programming</title>
<link>https://community.makautwb.net/index.php?qa=questions&amp;qa_1=programming</link>
<description>Powered by Question2Answer</description>
<item>
<title>Assignment 8.3 (on Array and Functions)</title>
<link>https://community.makautwb.net/index.php?qa=13&amp;qa_1=assignment-8-3-on-array-and-functions</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Write a program in C to merge two arrays of same size sorted in descending order.&amp;nbsp;&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Test Data :&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input the number of elements to be stored in the first array :3&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input 3 elements in the array :&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 0 : 1&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 1 : 2&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 2 : 3&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input the number of elements to be stored in the second array :3&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input 3 elements in the array :&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 0 : 1&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 1 : 2&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 2 : 3&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;em style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Expected Output&lt;/em&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;:&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;The merged array in descending order is :&lt;/span&gt;
&lt;br style=&quot;color: rgba(0, 0, 0, 0.87); font-family: Helvetica, Arial, sans-serif; font-size: 17px;&quot;&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;3 3 2 2 1 1&lt;/span&gt;&lt;/p&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=13&amp;qa_1=assignment-8-3-on-array-and-functions</guid>
<pubDate>Fri, 20 Aug 2021 14:24:40 +0000</pubDate>
</item>
<item>
<title>Assignment 8.2 (On Array and Functions)</title>
<link>https://community.makautwb.net/index.php?qa=12&amp;qa_1=assignment-8-2-on-array-and-functions</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Write a program in C to count a total number of duplicate elements in an array.&amp;nbsp;&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Test Data :&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input the number of elements to be stored in the array :3&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input 3 elements in the array :&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 0 : 5&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 1 : 1&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 2 : 1&lt;/span&gt;
&lt;br&gt;&lt;em&gt;Expected Output&lt;/em&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;:&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Total number of duplicate elements found in the array is : 1&lt;/span&gt;&lt;/p&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=12&amp;qa_1=assignment-8-2-on-array-and-functions</guid>
<pubDate>Fri, 20 Aug 2021 14:21:15 +0000</pubDate>
</item>
<item>
<title>Assignment 8.1 (On Array and Function)</title>
<link>https://community.makautwb.net/index.php?qa=11&amp;qa_1=assignment-8-1-on-array-and-function</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Write a program in C to read n number of values in an array and display it in reverse order.&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Test Data :&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input the number of elements to store in the array :3&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;Input 3 number of elements in the array :&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 0 : 2&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 1 : 5&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;element - 2 : 7&lt;/span&gt;
&lt;br&gt;&lt;em&gt;Expected Output&lt;/em&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;:&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;The values store into the array are :&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;2 5 7&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;The values store into the array in reverse are :&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.87); font-family:Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;7 5 2&lt;/span&gt;&lt;/p&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=11&amp;qa_1=assignment-8-1-on-array-and-function</guid>
<pubDate>Fri, 20 Aug 2021 14:19:59 +0000</pubDate>
</item>
<item>
<title>Assignment 7.5</title>
<link>https://community.makautwb.net/index.php?qa=8&amp;qa_1=assignment-7-5</link>
<description>

&lt;p&gt;5. What will be the output?&lt;/p&gt;

&lt;pre style=&quot;box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; padding: 9.5px; margin: -9.5px; line-height: 1.42857; word-break: break-all; background-color: rgb(34, 34, 34); border: 1px solid rgb(34, 34, 34); border-radius: 4px; font-style: italic;&quot;&gt;&lt;strong style=&quot;box-sizing:border-box; color:#cd2828; font-weight:bold&quot; class=&quot;cp&quot;&gt;#include&lt;/strong&gt; &lt;span style=&quot;box-sizing:border-box; color:#999999&quot; class=&quot;cpf&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;
&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;n&quot;&gt;display&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;(){&lt;/span&gt;
    &lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;n&quot;&gt;printf&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#ed9d13&quot; class=&quot;s&quot;&gt;&quot;C&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#ed9d13&quot; class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#ed9d13&quot; class=&quot;s&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;n&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;();&lt;/span&gt;
&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;strong style=&quot;box-sizing:border-box; color:#6ab825; font-weight:bold&quot; class=&quot;kt&quot;&gt;int&lt;/strong&gt; &lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;n&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;(){&lt;/span&gt;
    &lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;n&quot;&gt;printf&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#ed9d13&quot; class=&quot;s&quot;&gt;&quot;Hey&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#ed9d13&quot; class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#ed9d13&quot; class=&quot;s&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;n&quot;&gt;display&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;();&lt;/span&gt;
    &lt;strong style=&quot;box-sizing:border-box; color:#6ab825; font-weight:bold&quot; class=&quot;k&quot;&gt;return&lt;/strong&gt; &lt;span style=&quot;box-sizing:border-box; color:#3677a9&quot; class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;box-sizing:border-box; color:#d0d0d0&quot; class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=8&amp;qa_1=assignment-7-5</guid>
<pubDate>Thu, 22 Jul 2021 13:46:50 +0000</pubDate>
</item>
<item>
<title>Assignment 7.4</title>
<link>https://community.makautwb.net/index.php?qa=7&amp;qa_1=assignment-7-4</link>
<description>

&lt;p&gt;4. Write a function MultiPrint(int n, char c) that prints n copies of character c. For example, if n=3 and c= &#039;a&#039; then MultiPrint(int n, char c) prints &#039;aaa&#039;.&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#e74c3c&quot;&gt;&lt;strong&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;(Answer will be given Next Week)&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=7&amp;qa_1=assignment-7-4</guid>
<pubDate>Tue, 20 Jul 2021 14:11:34 +0000</pubDate>
</item>
<item>
<title>Assignment 7.3</title>
<link>https://community.makautwb.net/index.php?qa=6&amp;qa_1=assignment-7-3</link>
<description>

&lt;p&gt;3.&amp;nbsp;&lt;span style=&quot;color:#202122; font-family:sans-serif; font-size:14px&quot;&gt;Create a calculator that takes a number, a basic math operator (+,-,*,/,^), and a second number all from user input, and have it print the result of the mathematical operation. The mathematical operations should be wrapped inside of functions.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong style=&quot;box-sizing:border-box; color:#e74c3c; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;(Answer will be given Next Week)&lt;/strong&gt;&lt;/p&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=6&amp;qa_1=assignment-7-3</guid>
<pubDate>Tue, 20 Jul 2021 14:06:41 +0000</pubDate>
</item>
<item>
<title>Assignment 7.2</title>
<link>https://community.makautwb.net/index.php?qa=5&amp;qa_1=assignment-7-2</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;2. Write a program which will ask the user to enter his/her marks (out of 100). Define a function that will display grades according to the marks entered as below:&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;Marks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Grade&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;91-100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AA&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;81-90&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AB&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;71-80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BB&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;61-70&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BC&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;51-60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CD&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;41-50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DD&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#121212; font-family:Carme,sans-serif&quot;&gt;&amp;lt;=40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fail&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong style=&quot;box-sizing:border-box; color:#e74c3c; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;(Answer will be given Next Week)&lt;/strong&gt;&lt;/p&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=5&amp;qa_1=assignment-7-2</guid>
<pubDate>Tue, 20 Jul 2021 14:03:31 +0000</pubDate>
</item>
<item>
<title>Assignment 7.1</title>
<link>https://community.makautwb.net/index.php?qa=4&amp;qa_1=assignment-7-1</link>
<description>

&lt;p&gt;1. What will be the output of the following Program?&lt;/p&gt;

&lt;pre&gt;#include&amp;lt;stdio.h&amp;gt;
int function();
main()
{
	int i;
	i = function();
	printf(&quot;%d&quot;, i);
	return 0;
}
function()
{
	int a;
	a = 250;
	return 0;
}&lt;/pre&gt;

&lt;pre&gt;
&lt;/pre&gt;

&lt;pre&gt;&lt;strong style=&quot;box-sizing:border-box; color:#e74c3c; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif; white-space:normal&quot;&gt;(Answer will be given Next Week)&lt;/strong&gt;
&lt;/pre&gt;</description>
<category>Programming</category>
<guid isPermaLink="true">https://community.makautwb.net/index.php?qa=4&amp;qa_1=assignment-7-1</guid>
<pubDate>Tue, 20 Jul 2021 14:01:50 +0000</pubDate>
</item>
</channel>
</rss>