<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Query - EmbLogic</title>
      <link>https://www.emblogic.com/forum/categories/query/feed.rss</link>
      <pubDate>Thu, 13 Aug 26 19:45:03 +0530</pubDate>
         <description>Query - EmbLogic</description>
   <language>en-CA</language>
   <atom:link href="/forum/discussions/feed.rss" rel="self" type="application/rss+xml" />
		<item>
			<title>kernel compilation failure</title>
			<link>https://www.emblogic.com/forum/discussion/2066/kernel-compilation-failure</link>
			<pubDate>Tue, 09 Dec 2025 20:51:26 +0530</pubDate>
			<dc:creator>madhu601</dc:creator>
			<guid isPermaLink="false">2066@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>&nbsp;&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>Getting following error while doing kernel compilation</span></span></div><div><span style="font-family: Arial, Verdana;"><span>HOSTCC&nbsp; scripts/gendwarfksyms/gendwarfksyms.o</span></span></div><div><span style="font-family: Arial, Verdana;"><span>In file included from scripts/gendwarfksyms/gendwarfksyms.c:12:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>scripts/gendwarfksyms/gendwarfksyms.h:6:10: fatal error: dwarf.h: No such file or directory</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; 6 | <a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a> &lt;dwarf.h&gt;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~</span></span></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>named fifo not working for NON BLOCKING operation</title>
			<link>https://www.emblogic.com/forum/discussion/1992/named-fifo-not-working-for-non-blocking-operation</link>
			<pubDate>Fri, 18 Apr 2025 17:53:12 +0530</pubDate>
			<dc:creator>madhu601</dc:creator>
			<guid isPermaLink="false">1992@/forum/discussions</guid>
			<description><![CDATA[<div><div><div><span style="font-family: Arial, Verdana;"><span>Is there any options to add the attachment</span></span></div></div></div>]]></description>
		</item>
		<item>
			<title>Linux system programming</title>
			<link>https://www.emblogic.com/forum/discussion/1981/linux-system-programming</link>
			<pubDate>Thu, 06 Mar 2025 10:48:55 +0530</pubDate>
			<dc:creator>jainh10022000</dc:creator>
			<guid isPermaLink="false">1981@/forum/discussions</guid>
			<description><![CDATA[User takes a input from first program and and output from second program so how can we call second program as argument without using argc and argv&nbsp;]]></description>
		</item>
		<item>
			<title>Print the double question in C.</title>
			<link>https://www.emblogic.com/forum/discussion/1975/print-the-double-question-in-c-</link>
			<pubDate>Thu, 23 Jan 2025 07:54:57 +0530</pubDate>
			<dc:creator>mdaliakbar</dc:creator>
			<guid isPermaLink="false">1975@/forum/discussions</guid>
			<description><![CDATA[Ans<br /><a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a> <br /><br />int main()<br /> {<br /><br />    printf("\" \" \n");<br /><br />    return 0;<br /><br />} <br />Key points: \ slash symbol is a sequence break charecter so \ this symbol read as a charecter]]></description>
		</item>
		<item>
			<title>Array Store which type of memory?</title>
			<link>https://www.emblogic.com/forum/discussion/1374/array-store-which-type-of-memory</link>
			<pubDate>Wed, 20 Mar 2024 08:23:02 +0530</pubDate>
			<dc:creator>mdaliakbar</dc:creator>
			<guid isPermaLink="false">1374@/forum/discussions</guid>
			<description><![CDATA[In java Array store heap memory, but in C program <br />Array store which types of memory? ]]></description>
		</item>
		<item>
			<title>c++ Basic</title>
			<link>https://www.emblogic.com/forum/discussion/1404/c-basic</link>
			<pubDate>Wed, 01 May 2024 01:11:49 +0530</pubDate>
			<dc:creator>dshikha492</dc:creator>
			<guid isPermaLink="false">1404@/forum/discussions</guid>
			<description><![CDATA[Hi, There is a question in part 3 assignment: Sending message to an object is same as the _____________.<div>what is the correct answer in the blank?</div>]]></description>
		</item>
		<item>
			<title>How to install GTK terminal on Ubuntu</title>
			<link>https://www.emblogic.com/forum/discussion/1403/how-to-install-gtk-terminal-on-ubuntu</link>
			<pubDate>Sun, 21 Apr 2024 10:41:38 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1403@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>It can be installed using the following command on Ubuntu:</span></span></div><span style="font-family: Arial, Verdana;"><span><b><span style="font-family: Arial, Verdana;"><span><b><br /></b></span></span>sudo apt install gtkterm</b></span></span><div><br /></div>]]></description>
		</item>
		<item>
			<title>Interrupt Service Routine(ISR)</title>
			<link>https://www.emblogic.com/forum/discussion/1265/interrupt-service-routineisr</link>
			<pubDate>Wed, 31 Jan 2024 19:39:28 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1265@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>What are the key characteristics distinguish ISR (Interrupt Service Routine) code from general function code in C?</span></span>]]></description>
		</item>
		<item>
			<title>we need to store a particular value at an particular address, how could it be done?</title>
			<link>https://www.emblogic.com/forum/discussion/1084/we-need-to-store-a-particular-value-at-an-particular-address-how-could-it-be-done</link>
			<pubDate>Sat, 13 Jan 2024 12:36:35 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1084@/forum/discussions</guid>
			<description><![CDATA[<div>All your answers are welcome.</div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Inserting a node in tree</title>
			<link>https://www.emblogic.com/forum/discussion/1078/inserting-a-node-in-tree</link>
			<pubDate>Wed, 27 Dec 2023 12:31:57 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1078@/forum/discussions</guid>
			<description><![CDATA[<div>Iam inserting a node in the tree, while inserting , after n = 1, no further allocation is being done rather the previously allocated nodes are getting overwritten. <br /></div><div>Below is the code:-</div><div><b>#include"headers.h"<br />#include"dataStruct.h"<br />#include"declarations.h"<br />void** insertNode(void** args)<br />{<br />&nbsp; //int i,n;<br />&nbsp; int n;<br />&nbsp; Node **tree;<br />&nbsp; printf("%s:Begin.\n",__func__);<br />&nbsp; tree = (Node**)args;<br />&nbsp; *(tree+0) = (Node*)(*fnptr[1])(0);<br />&nbsp; for(i = n = 1;i&lt;2*n+1;i++,n++)<br />&nbsp; {<br />&nbsp;&nbsp;&nbsp; /*if(*(tree+i) == NULL)<br />&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *(tree+i) = *(tree+0);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *(tree+0) = NULL;<br />&nbsp;&nbsp;&nbsp; }*/<br />&nbsp;&nbsp;&nbsp; printf("i:%d\n",i);<br />&nbsp;&nbsp;&nbsp; printf("2i:%p\n",*(tree+2*i));<br />&nbsp;&nbsp;&nbsp; printf("2i+1:%p\n",*((tree+2*i)+1));<br />&nbsp;&nbsp;&nbsp; if(*(tree+2*i) == NULL)<br />&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *(tree+2*i) = *(tree+0);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *(tree+0) = NULL;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:Value(2i-&gt;%d)-&gt;%3d\n",__func__,2*i,(tree[2*i])-&gt;value);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; else if(*(tree+(2*i+1)) == NULL)<br />&nbsp;&nbsp;&nbsp; { &nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *(tree+(2*i+1)) = *(tree+0);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *(tree+0) = NULL;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:Value(2*i+1-&gt;%d)-&gt;%3d\n",__func__,(2*i+1),(tree[2*i+1])-&gt;value);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tree = (Node**)realloc(tree,sizeof(Node*)*(2*i+1));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //tree = (Node**)realloc(tree,sizeof(Node*)*(2));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!tree)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("realloc");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fnptr[0])((void*)"failure");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:Value(2i-&gt;%d)-&gt;%3d\n",__func__,2*i,tree[2*i]-&gt;value);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:Value(2i+1-&gt;%d)-&gt;%3d\n",__func__,2*i+1,(tree[2*i+1])-&gt;value);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; memset(tree,'\0',sizeof(Node*)*(2*i+1));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp; }<br /><br />&nbsp; printf("%s:End.\n",__func__);<br />&nbsp; return args;<br />}<br /></b></div><div><br /></div><div>your advice would be of great help.<br /></div>]]></description>
		</item>
		<item>
			<title>Troubleshooting glibc Error in C Program: malloc.c Assertion Fail?</title>
			<link>https://www.emblogic.com/forum/discussion/1077/troubleshooting-glibc-error-in-c-program-malloc-c-assertion-fail</link>
			<pubDate>Wed, 27 Dec 2023 12:12:02 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1077@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>I'm facing a glibc error in my C program while creating a binary tree. The issue occurs during the allocation of memory for a node in creatNode.c. The error points to malloc.c:2593 and includes an assertion failure. How can I troubleshoot and resolve this memory allocation problem?</span></span><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>creatNode.c : creatNode : Going to allocate memory for a fresh node</span></span></div><div><span>Fatal glibc error: malloc.c:2593 (sysmalloc): assertion failed: (old_top == initial_top (av) &amp;&amp; old_size == 0) || ((unsigned long) (old_size) &gt;= MINSIZE &amp;&amp; prev_inuse (old_top) &amp;&amp; ((unsigned long) old_end &amp; (pagesize - 1)) == 0)</span></div><div><span>Aborted (core dumped)</span></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Addressing synchronization issue in the project &quot;Client-Server Communication Using IPC and Threads&quot;</title>
			<link>https://www.emblogic.com/forum/discussion/1064/addressing-synchronization-issue-in-the-project-client-server-communication-using-ipc-and-threads</link>
			<pubDate>Thu, 23 Nov 2023 13:04:32 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1064@/forum/discussions</guid>
			<description><![CDATA[<span>In the project "Client-Server Communication using IPC and Threads", before the&nbsp;</span><b>Vendor</b><span>&nbsp;sends the latest result to the&nbsp;</span><b>shared memory</b><span>, the&nbsp;</span><b>processRequest()</b><span>&nbsp;function </span><span><b>reads the result</b></span><span> as if the previous one is still present in the&nbsp;</span><span>shared memory</span><span>. Consequently, when processRequest() function sends this </span><span><b>outdated result</b></span><span> to the&nbsp;</span><b>message queue</b><span>, it does not correspond to the </span><span><b>current client</b></span><span> that initiated the request. As a result, the </span><span><b>client fails to receive</b></span><span> the actual result from the message queue.&nbsp;</span><div><span>Please provide guidance on how to address and synchronize this issue.</span></div>]]></description>
		</item>
		<item>
			<title>Unable to understand this question.</title>
			<link>https://www.emblogic.com/forum/discussion/1076/unable-to-understand-this-question-</link>
			<pubDate>Sat, 23 Dec 2023 13:15:03 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1076@/forum/discussions</guid>
			<description><![CDATA[<span><code>&lt;span style=&quot;user-select: text !important;&quot;&gt;&lt;span style=&quot;font-size: 16px; user-select: text !important;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br&gt;#define p(a,b) a##b&lt;br&gt;#define call(x) #x&lt;br&gt;int main(){&lt;br&gt;&amp;nbsp; &amp;nbsp; do{&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i=15,j=3;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot;%d&quot;,p(i-+,+j));&lt;br&gt;&amp;nbsp; &amp;nbsp; }&lt;br&gt;&amp;nbsp; &amp;nbsp; while(*(call(625)+3));&lt;br&gt;&amp;nbsp;&lt;font color=&quot;#2980b9&quot; style=&quot;&quot;&gt; &amp;nbsp; &lt;/font&gt;return 0;&lt;br&gt;}&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;</code></span><div><span><code>&lt;span style=&quot;user-select: text !important;&quot;&gt;&lt;span style=&quot;font-size: 16px; user-select: text !important;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;</code></span></div><div><span><code>&lt;span style=&quot;user-select: text !important;&quot;&gt;&lt;span style=&quot;font-size: 16px; user-select: text !important;&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;Iam unable to understand the problem even via solution.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;</code></span></div>]]></description>
		</item>
		<item>
			<title>Challenges with Updating Counts in C++ LMS (Library Management System) Project Book Class</title>
			<link>https://www.emblogic.com/forum/discussion/1071/challenges-with-updating-counts-in-c-lms-library-management-system-project-book-class</link>
			<pubDate>Wed, 06 Dec 2023 13:02:19 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1071@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>In the LMS Project, after inserting an entry into the Book class, if I am updating the count by moving the offset to the beginning, reading the current count, and then overwriting the updated value of the count, the count value is not displaying properly as 0, 1, or 2. Instead, it shows some garbage values as shown below:&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>Count :32512&nbsp; Count :32513</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>Furthermore, when incorporating this count in the project, my displayBooks() function does not show any details, it only prints begin and end line of the function.</span></span></div><div><span style="font-family: Arial, Verdana;"><span>This problem is raised&nbsp;only when trying to incorporate the count of Books in the project.</span></span></div><div><span style="font-family: Arial, Verdana;"><span>What might be the possible reasons? Any suggestions are welcome.</span></span></div>]]></description>
		</item>
		<item>
			<title>How many types of smart pointers are there?</title>
			<link>https://www.emblogic.com/forum/discussion/1066/how-many-types-of-smart-pointers-are-there</link>
			<pubDate>Tue, 28 Nov 2023 22:14:20 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1066@/forum/discussions</guid>
			<description><![CDATA[Post all your answers here.<br />]]></description>
		</item>
		<item>
			<title>Converting Decimal to binary, hexa,octal</title>
			<link>https://www.emblogic.com/forum/discussion/1074/converting-decimal-to-binary-hexaoctal</link>
			<pubDate>Sun, 10 Dec 2023 11:24:52 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1074@/forum/discussions</guid>
			<description><![CDATA[How to convert decimal to binary, hexadecimal and octal without using inbuilt functions.<br />]]></description>
		</item>
		<item>
			<title>File Creation and Writing in C++: Opening an Existing File for Writing or Creating a New File</title>
			<link>https://www.emblogic.com/forum/discussion/1073/file-creation-and-writing-in-c-opening-an-existing-file-for-writing-or-creating-a-new-file</link>
			<pubDate>Sat, 09 Dec 2023 21:49:34 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1073@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>In C++, which specific function is commonly employed to open a file for writing and, if the file doesn't already exist, create it in the process?</span></span>]]></description>
		</item>
		<item>
			<title>What is a daemon process?</title>
			<link>https://www.emblogic.com/forum/discussion/1072/what-is-a-daemon-process</link>
			<pubDate>Fri, 08 Dec 2023 21:30:47 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1072@/forum/discussions</guid>
			<description><![CDATA[All answers are welcome.<br />]]></description>
		</item>
		<item>
			<title>Static member</title>
			<link>https://www.emblogic.com/forum/discussion/1070/static-member</link>
			<pubDate>Sun, 03 Dec 2023 21:10:39 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1070@/forum/discussions</guid>
			<description><![CDATA[<div><div><br /></div><div><br /></div><div>int ObjectCounter::objectCount=0;</div><div><br /></div></div><div><div><span style="font-family: Arial, Verdana;"><span>int main()</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;{</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; ObjectCounter obj1;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; ObjectCounter obj2(42);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; ObjectCounter obj3;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;</span></span></div><div><span>&nbsp; &nbsp; cout&lt;&lt;__func__&lt;&lt;":Begin"&lt;&lt;endl;</span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp;&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;cout&lt;&lt;"number of object created in zero argument:"&lt;&lt;obj1.getObjectCount()&lt;&lt;endl;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;cout&lt;&lt;"number of object created in one argument:"&lt;&lt;obj2.getObjectCount()&lt;&lt;endl;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;cout&lt;&lt;"number of object created in zero argument:"&lt;&lt;obj3.getObjectCount()&lt;&lt;endl;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp;&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp;&nbsp;</span></span><span>&nbsp; cout&lt;&lt;__func__&lt;&lt;":End"&lt;&lt;endl;</span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;return 0;</span></span></div></div><div>}</div><div><br /></div><div>//Below the code is classes.h</div><div><div>&nbsp; class ObjectCounter</div><div>&nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp;private:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;static int objectCount;&nbsp; &nbsp; //static variable to count the number of objects&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int data;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;public:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ObjectCounter(); //0 argument constructor</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ObjectCounter(int);//One argument constructor</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; static int getObjectCount();</div><div>&nbsp;};</div><div><br /></div><div>Hello,</div><div>When I run the above code I get the output like&nbsp; as below</div><div><br /></div><div><div>number of object created in zero argument:3</div><div>number of object created in one argument:3</div><div>number of object created in zero argument:3</div><div><br /></div><div>Can anyone please explain how it's working?</div></div></div>]]></description>
		</item>
		<item>
			<title>How to do deque operation in priority queue?</title>
			<link>https://www.emblogic.com/forum/discussion/1065/how-to-do-deque-operation-in-priority-queue</link>
			<pubDate>Tue, 28 Nov 2023 19:13:45 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1065@/forum/discussions</guid>
			<description><![CDATA[I have done till enqueue in the priority queue, but not getting idea for deque, can someone give a hint on deque?<br />]]></description>
		</item>
		<item>
			<title>Constructor</title>
			<link>https://www.emblogic.com/forum/discussion/1069/constructor</link>
			<pubDate>Sat, 02 Dec 2023 20:59:39 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1069@/forum/discussions</guid>
			<description><![CDATA[What is parametrized constructor?]]></description>
		</item>
		<item>
			<title>What is the difference between cat and more command?</title>
			<link>https://www.emblogic.com/forum/discussion/1068/what-is-the-difference-between-cat-and-more-command</link>
			<pubDate>Fri, 01 Dec 2023 19:04:55 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1068@/forum/discussions</guid>
			<description><![CDATA[This is an interview question.<br />]]></description>
		</item>
		<item>
			<title>Understanding and Troubleshooting strncpy Behavior in C</title>
			<link>https://www.emblogic.com/forum/discussion/1067/understanding-and-troubleshooting-strncpy-behavior-in-c</link>
			<pubDate>Wed, 29 Nov 2023 11:16:59 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1067@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>In C programming, <b>strcpy()</b> and <b>strncpy()</b> are both functions used for string manipulation, but they have some key differences:</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span><b>strcpy(destination, source):</b></span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>Copies the entire source string to the destination until it encounters a null character ('\0'), without checking the destination buffer size. This lack of size checking may lead to buffer overflow if the source string is longer than the destination buffer.</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span><b>strncpy(destination, source, n):</b></span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>Copies at most <b>n</b> characters from the source to the destination, padding with null characters ('\0') if necessary. This helps prevent buffer overflow by limiting the number of characters copied, but it's important to note that it may not automatically null-terminate the destination string if the source is equal to or longer than n.</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>Let's try to use it in a program :&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span><a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a> &lt;stdio.h&gt;</span></span></div><div><span><a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a> &lt;string.h&gt;</span></div><div><span><br /></span></div><div><span>int main()</span></div><div><span>{</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; char source[] = "Hello, World!";</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; char destination1[10];</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; char destination2[20];</span></div><div><span><br /></span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; // Using strcpy</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; strcpy(destination1, source);</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; printf("strcpy: %s\n", destination1);</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; // Using strncpy</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; strncpy(destination2, source, 10);</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; destination2[10] = '\0'; // Manually null-terminate the string</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; printf("strncpy: %s\n", destination2);</span></div><div><span><br /></span></div><div><span>&nbsp; &nbsp; return 0;</span></div><div><span>}</span></div><div><br /></div><div>OUTPUT :&nbsp;</div><div><div>strcpy: Hello, World!</div><div>strncpy: ld!</div><div><br /></div><div><b><span style="text-decoration: underline;">Ques</span></b> : Why <b>strncpy</b> produced output as "<b>ld!</b>", I think it should be "<b>Hello, Wor</b>" ?</div><div><br /></div><div><span>Discussion and suggestions are welcome and appreciated.</span></div></div>]]></description>
		</item>
		<item>
			<title>Client Server Communication using IPC and Threads</title>
			<link>https://www.emblogic.com/forum/discussion/1046/client-server-communication-using-ipc-and-threads</link>
			<pubDate>Wed, 01 Nov 2023 11:58:27 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1046@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>After implementing thread in server.c to call the process request(), My server is now unable to open process request() .&nbsp; Here is the code reference:</span></span><div><div><span style="font-family: Arial, Verdana;"><span>while(1)</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; {</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ret = pthread_create(&amp;thid, NULL, processRequest, (void*)infra); //processRequest()</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf("%s : %s : Ret-&gt;%d\n", __FILE__, __func__, ret);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ret != 0)</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; perror("pthread_create");</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (*fptr[0])((void*)"failure");</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; }</span></div></div><div><br /></div><div><div><span style="font-family: Arial, Verdana;"><span>OUTPUT :&nbsp;</span></span>creatInfra.c : creatInfra : End</div><div>server.c : main : <span>Ret-&gt;0</span></div><div>server.c : main : End</div><div><br /></div><div>As Ret is returning zero which means pthread_create is working fine. Please guide me.</div></div>]]></description>
		</item>
		<item>
			<title>Creating Diamond pattern</title>
			<link>https://www.emblogic.com/forum/discussion/1063/creating-diamond-pattern</link>
			<pubDate>Sun, 19 Nov 2023 22:20:12 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1063@/forum/discussions</guid>
			<description><![CDATA[Can someone give me a hint on how to create diamond pattern?<br />]]></description>
		</item>
		<item>
			<title>Understanding the Difference Between Void Pointer and Pointer to a Void</title>
			<link>https://www.emblogic.com/forum/discussion/1060/understanding-the-difference-between-void-pointer-and-pointer-to-a-void</link>
			<pubDate>Mon, 13 Nov 2023 13:02:09 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1060@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>Is there a distinction between a <b>void</b> <b>pointer</b> and a <b>pointer to a void&nbsp;</b>? If yes, discuss it using a suitable example.</span></span>]]></description>
		</item>
		<item>
			<title>Shell Script</title>
			<link>https://www.emblogic.com/forum/discussion/1059/shell-script</link>
			<pubDate>Sun, 12 Nov 2023 23:23:51 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1059@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>What is the first line in scripting (#! /bin/bash) and what is its significance?</span></span>]]></description>
		</item>
		<item>
			<title>Structure in C and C++</title>
			<link>https://www.emblogic.com/forum/discussion/1058/structure-in-c-and-c-</link>
			<pubDate>Fri, 10 Nov 2023 10:40:47 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1058@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>Members of a structure in C have public visibility by default while in C++ they have private visibility&nbsp;by default.</span></span><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>Apart from that, are there any more differences in structure between C and C++?&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>If yes, please share your responses...</span></span></div>]]></description>
		</item>
		<item>
			<title>Making pattern</title>
			<link>https://www.emblogic.com/forum/discussion/1057/making-pattern</link>
			<pubDate>Thu, 09 Nov 2023 12:13:31 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1057@/forum/discussions</guid>
			<description><![CDATA[<div>How to print right arrow pattern using 2d array?</div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Process Context</title>
			<link>https://www.emblogic.com/forum/discussion/1056/process-context</link>
			<pubDate>Wed, 08 Nov 2023 21:47:44 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1056@/forum/discussions</guid>
			<description><![CDATA[Which segment of process context can access directly?]]></description>
		</item>
		<item>
			<title>Overloading Unary operators in C++</title>
			<link>https://www.emblogic.com/forum/discussion/1054/overloading-unary-operators-in-c-</link>
			<pubDate>Tue, 07 Nov 2023 19:53:58 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1054@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>using namespace std;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>class MyCounter</span></span></div><div><span style="font-family: Arial, Verdana;"><span>{</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; private:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; int count;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; public:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; MyCounter();</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; MyCounter(int);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; int display();</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; MyCounter operator++();&nbsp; &nbsp; &nbsp; &nbsp;// PreFix version</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; MyCounter operator++(int);&nbsp; &nbsp; // PostFix Version</span></span></div><div><span style="font-family: Arial, Verdana;"><span>};</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>Is it possible to change the <b>int</b> parameter in the <b>operator++</b> functions to distinguish between the <b>prefix</b> and <b>postfix</b> versions of the operator?&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>I attempted to make this change, but I encountered a <b>compilation error</b>....</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>What may be the possible reasons?</span></span></div>]]></description>
		</item>
		<item>
			<title>What is the difference between semaphore and mutex?</title>
			<link>https://www.emblogic.com/forum/discussion/1042/what-is-the-difference-between-semaphore-and-mutex</link>
			<pubDate>Mon, 25 Sep 2023 07:10:25 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1042@/forum/discussions</guid>
			<description><![CDATA[Please answer the query.<br />]]></description>
		</item>
		<item>
			<title>MakeFile</title>
			<link>https://www.emblogic.com/forum/discussion/1053/makefile</link>
			<pubDate>Sun, 05 Nov 2023 21:54:54 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1053@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>Q. Is it always necessary that makefile should be saved as by the name "Makefile" in the directory? If try to save it with a different name, throws an error "make: Nothing to be done for &lt;filename&gt;. How to avoid it?</span></span>]]></description>
		</item>
		<item>
			<title>Usage of Static qualifier in Modular Programming</title>
			<link>https://www.emblogic.com/forum/discussion/1048/usage-of-static-qualifier-in-modular-programming</link>
			<pubDate>Thu, 02 Nov 2023 21:05:56 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1048@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>I declared variable int count as<span> "static" </span>in declarations.h file, Now on creating each Node in a LinkList I am incrementing the value of count in the<b> creatNode() </b>and the incremented count is also displayed inside the <b>creatNode() </b>whenever user wants to add a Node. BUT, when I want to display the total <b>count </b>value in <b>display(),</b> it is showing as Count : 0.&nbsp;</span></span>]]></description>
		</item>
		<item>
			<title>device driver issue</title>
			<link>https://www.emblogic.com/forum/discussion/1052/device-driver-issue</link>
			<pubDate>Sun, 05 Nov 2023 21:52:34 +0530</pubDate>
			<dc:creator>ayaz.ahmad003</dc:creator>
			<guid isPermaLink="false">1052@/forum/discussions</guid>
			<description><![CDATA[<h1 class="gh-header-title mb-2 lh-condensed f1 mr-0 flex-auto wb-break-word">macro "access_ok" passed 3 arguments, but takes just 2</h1>]]></description>
		</item>
		<item>
			<title>Threads and Process</title>
			<link>https://www.emblogic.com/forum/discussion/1050/threads-and-process</link>
			<pubDate>Sat, 04 Nov 2023 11:50:25 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1050@/forum/discussions</guid>
			<description><![CDATA[What is difference between thread and process?&nbsp;]]></description>
		</item>
		<item>
			<title>NULL</title>
			<link>https://www.emblogic.com/forum/discussion/1044/null</link>
			<pubDate>Sat, 07 Oct 2023 13:39:32 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1044@/forum/discussions</guid>
			<description><![CDATA[What is NULL?&nbsp;]]></description>
		</item>
		<item>
			<title>Array</title>
			<link>https://www.emblogic.com/forum/discussion/1043/array</link>
			<pubDate>Fri, 06 Oct 2023 22:54:46 +0530</pubDate>
			<dc:creator>sumacangadi</dc:creator>
			<guid isPermaLink="false">1043@/forum/discussions</guid>
			<description><![CDATA[Why does array starts from Zero Index?]]></description>
		</item>
		<item>
			<title>asignment1 Q10 caculate the square root of two coordinates</title>
			<link>https://www.emblogic.com/forum/discussion/1036/asignment1-q10-caculate-the-square-root-of-two-coordinates</link>
			<pubDate>Wed, 19 Jul 2023 21:56:01 +0530</pubDate>
			<dc:creator>akashbhandari</dc:creator>
			<guid isPermaLink="false">1036@/forum/discussions</guid>
			<description><![CDATA[#include&lt;stdio.h&gt;<br />&nbsp; 2 #include&lt;math.h&gt;<br />&nbsp; 3 int main()<br />&nbsp; 4 <br />&nbsp; 5 {<br />&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float x1,y1,x2,y2;<br />&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float dist;<br />&nbsp; 8 <br />&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Enter the coordinates for first points\n");<br />&nbsp;10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scanf("%f%f",&amp;x1,&amp;y1);<br />&nbsp;11 <br />&nbsp;12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Enter the coordinates for second points\n");<br />&nbsp;13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scanf("%f%f",&amp;x2,y2);<br />&nbsp;14 <br />&nbsp;15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dist = sqrt(pow((x2-x1),2) + pow((y2-y1),2));<br />&nbsp;16 <br />&nbsp;17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("The distance between two point is=%f\n",dist);<br />&nbsp;18 <br />&nbsp;19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br />&nbsp;20 <br />&nbsp;21 }<br /><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div>output</div><div><br /></div><div>Enter the coordinates for first points<br />25<br />15<br />Enter the coordinates for second points<br />35<br />10<br />Segmentation fault (core dumped)<br /></div><div><br /></div><div><br /></div><div><br /></div><div>why am i getting segmentation fault here?<br /></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>GPL license issue, for device deriver init</title>
			<link>https://www.emblogic.com/forum/discussion/1035/gpl-license-issue-for-device-deriver-init</link>
			<pubDate>Wed, 19 Jul 2023 21:29:49 +0530</pubDate>
			<dc:creator>shub.sharma007</dc:creator>
			<guid isPermaLink="false">1035@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>[ 9867.745855] mycdd: loading out-of-tree module taints kernel.</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 9867.745861] mycdd: <b>module verification failed: signature and/or required key missing - tainting kerne</b>l</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 9867.746910] myDevInit Begin</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 9867.746916] myDevInit: Device Registeration Success, register_chrdev Major No : 511</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 9867.746919] myDevInit End</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 9936.114359] myDevExit Begin</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 9936.114374] myDevExit End</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[10032.338179] <b>mycdd: module license 'GNU/GPL' taints kernel</b>.</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[10032.338191] Disabling lock debugging due to kernel taint</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[10032.338193] mycdd: module license taints kernel.</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[10032.338882] myDevInit Begin</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[10032.338890] myDevInit: Device Registration&nbsp;Success, register_chrdev Major No : 511</span></span></div><div><br /><br /><span style="font-family: Arial, Verdana;"><span>I used</span></span><b>&nbsp;MODULE_LICENSE("GPL") </b><span style="font-family: Arial, Verdana;"><span>as well, but still getting&nbsp;this warning</span></span></div>]]></description>
		</item>
		<item>
			<title>device driver issue</title>
			<link>https://www.emblogic.com/forum/discussion/1041/device-driver-issue</link>
			<pubDate>Sun, 13 Aug 2023 11:28:42 +0530</pubDate>
			<dc:creator>ayaz.ahmad003</dc:creator>
			<guid isPermaLink="false">1041@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>home/ayaz/cdd_01/initFunc.c:8:23: error: conflicting types for ‘fops’; have ‘struct file_operation’</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; 8 | struct file_operation fops;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~</span></span></div><div><span style="font-family: Arial, Verdana;"><span>In file included from /home/ayaz/cdd_01/initFunc.c:4:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>/home/ayaz/cdd_01/operation.h:1:24: note: previous definition of ‘fops’ with type ‘struct file_operations’</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; 1 | struct file_operations fops =</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~</span></span></div><div><span style="font-family: Arial, Verdana;"><span>/home/ayaz/cdd_01/initFunc.c: In function ‘myDevInit’:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>/home/ayaz/cdd_01/initFunc.c:44:34: error: passing argument 2 of ‘cdev_init’ from incompatible pointer type [-Werror=incompatible-pointer-types]</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;44 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cdev_init(&amp;dev[i].c_dev, &amp;fops);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; struct file_operation *</span></span></div><div><span style="font-family: Arial, Verdana;"><span>In file included from /home/ayaz/cdd_01/headers.h:5,</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /home/ayaz/cdd_01/initFunc.c:1:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>./include/linux/cdev.h:23:31: note: expected ‘const struct file_operations *’ but argument is of type ‘struct file_operation *’</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;23 | void cdev_init(struct cdev *, const struct file_operations *);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span></div><div><span style="font-family: Arial, Verdana;"><span>/home/ayaz/cdd_01/initFunc.c: At top level:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>/home/ayaz/cdd_01/initFunc.c:8:23: error: storage size of ‘fops’ isn’t known</span></span></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>insmod ./modules/mycdd.ko nod=10 insmod: ERROR: could not load module ./modules/mycdd.ko: No such fi</title>
			<link>https://www.emblogic.com/forum/discussion/1039/insmod-modulesmycdd-ko-nod10-insmod-error-could-not-load-module-modulesmycdd-ko-no-such-fi</link>
			<pubDate>Sun, 06 Aug 2023 11:41:54 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1039@/forum/discussions</guid>
			<description><![CDATA[Check the name of the file you have created and it will resolve the issue, or check the directory you are in.<br />]]></description>
		</item>
		<item>
			<title>multiple data compression</title>
			<link>https://www.emblogic.com/forum/discussion/1016/multiple-data-compression</link>
			<pubDate>Thu, 23 Mar 2023 06:50:14 +0530</pubDate>
			<dc:creator>ghattepragati7</dc:creator>
			<guid isPermaLink="false">1016@/forum/discussions</guid>
			<description><![CDATA[ls: cannot access '*.h,v': No such file or directory<br /><div><br /></div><div>I am not able to understand what causing this error <br /></div><div><br /></div><div>below is my script<br /></div><div><br /></div><div><br /></div><div>#! /bin/bash<br /><br />checkIn()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for file in $(ls *.h) $(ls *.c)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ci $file<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br />}<br /><br />checkOutB()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for file in $(ls *.h,v) $(ls *.c,v)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ci $file<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br />}<br /><br />buildProject()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( make )<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "Project build Successfully"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "Project build Successfully"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br /><br />}<br /><br />runProject()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( ./mdcaeuit )<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "project run sucessfully"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "project run failed"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br />}<br /><br />checkOutD()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for file in $(ls *.h,v) $(ls *.c,v)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; co -l $file<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />mainMenu()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "____Script Menu____"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " 1.Clean "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " 2.chekin "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " 3.chekout for build "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " 4.build project "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " 5.run project "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " 6.chekout for devlopment "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " 0.exit script "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " please enter your choice "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read&nbsp; choice<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case $choice in<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make clean<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; checkIn<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; checkOutB<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; buildProject<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; runProject<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; checkOutD<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "INVALID CHOICE"</div><div>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; esac<br />}<br />while true<br />do<br />&nbsp;&nbsp;&nbsp; mainMenu<br />done<br /></div><div><br /></div><div><br /></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /><br /><br /></div>]]></description>
		</item>
		<item>
			<title>Queries Related to FileIO</title>
			<link>https://www.emblogic.com/forum/discussion/1038/queries-related-to-fileio</link>
			<pubDate>Mon, 31 Jul 2023 14:30:42 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1038@/forum/discussions</guid>
			<description><![CDATA[<h1><b>Discuss all your queries related to FileIO here.</b></h1>]]></description>
		</item>
		<item>
			<title>kernel compilations issue</title>
			<link>https://www.emblogic.com/forum/discussion/1037/kernel-compilations-issue</link>
			<pubDate>Wed, 26 Jul 2023 14:04:59 +0530</pubDate>
			<dc:creator>Hussainzakir293</dc:creator>
			<guid isPermaLink="false">1037@/forum/discussions</guid>
			<description><![CDATA[zstd : command not found]]></description>
		</item>
		<item>
			<title>What are DS and BSS?</title>
			<link>https://www.emblogic.com/forum/discussion/1027/what-are-ds-and-bss</link>
			<pubDate>Wed, 10 May 2023 12:16:25 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1027@/forum/discussions</guid>
			<description><![CDATA[It was mentioned in notes that global variables are created in DS and uninitialized global variables in BSS. What do <b>DS and BSS</b> mean here?<br />]]></description>
		</item>
		<item>
			<title>Delete Duplicate Elements</title>
			<link>https://www.emblogic.com/forum/discussion/1030/delete-duplicate-elements</link>
			<pubDate>Sat, 24 Jun 2023 11:41:51 +0530</pubDate>
			<dc:creator>usaidsyedmohd</dc:creator>
			<guid isPermaLink="false">1030@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>#include&lt;stdio.h&gt;</span></span></div><div><span style="font-family: Arial, Verdana;"><span><a rel="nofollow" href="/forum/search?Search=%23define&amp;Mode=like">#define</a> SIZE 100</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>int i,n,j,k;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>int main(){</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; printf("Enter the size of array:\n");</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; scanf("%d",&amp;n);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; int arr[n];</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; printf("Enter the Array elements :\n");</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; for(i=0;i&lt;n;i++){</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scanf("%d",&amp;arr[i]);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; }</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>// Delete the duplicate rows:</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>for(i=0;i&lt;n;i++){</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>		</span>for(j=i+1;j&lt;n;j++){</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>			</span>if(arr[i]==arr[j]){</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>				</span>for(k=j;k&lt;n-1;k++){</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>					</span>arr[k]=arr[k+1];</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>				</span>}</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>				</span>n--; //Reduce the size of array.</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>				</span>j--; // adjust index after shifting.</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>			</span>}</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>		</span>}</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>}</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>printf("Updated Array is:\n");</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>for(i=0;i&lt;n;i++){</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>		</span>printf("%d\n",arr[i]);</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>}</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>return 0;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>}</span></span></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Arrays - Sorting algorithm</title>
			<link>https://www.emblogic.com/forum/discussion/1029/arrays-sorting-algorithm</link>
			<pubDate>Sat, 24 Jun 2023 11:37:01 +0530</pubDate>
			<dc:creator>mohdmohsinkhanee</dc:creator>
			<guid isPermaLink="false">1029@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>What's the major advantage of Merge sort over other sorting algorithm?</span></span>]]></description>
		</item>
		<item>
			<title>Error in c++</title>
			<link>https://www.emblogic.com/forum/discussion/1026/error-in-c-</link>
			<pubDate>Tue, 02 May 2023 12:34:21 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1026@/forum/discussions</guid>
			<description><![CDATA[<div>I was executing a program given in the&nbsp; notes, this was the error that occured:-</div><div><b>Below is the code</b>:-</div><div>#include&lt;iostream&gt;<br />using namespace std;<br />class B{<br />&nbsp; public:<br />&nbsp;&nbsp;&nbsp; virtual void m1()<br />&nbsp;&nbsp;&nbsp; {&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; cout&lt;&lt;"B::m1\n";<br />&nbsp;&nbsp;&nbsp; }&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; virtual void m2()<br />&nbsp;&nbsp;&nbsp; {&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; cout&lt;&lt;"B::m2\n";<br />&nbsp;&nbsp;&nbsp; }&nbsp; &nbsp;<br />};<br />class D :: B<br />{<br />&nbsp; public:<br />&nbsp; void m1()<br />&nbsp;&nbsp;&nbsp; {&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; cout&lt;&lt;"D::m1\n";<br />&nbsp;&nbsp;&nbsp; }&nbsp; &nbsp;<br />};<br />int main()<br />{<br />B *p;<br />B b;<br />D d;<br />p = &amp;d; // p is set to d's address<br />p-&gt; m1();<br />p-&gt; m2();<br />p = &amp;b; // p is set to b's address<br />p-&gt; m1();<br />p-&gt; m2();<br />}<br />// <b>here is the error</b> :-</div><div><br /></div><div><b>e4.cpp:14:7: error: ‘D’ has not been declared<br />&nbsp;&nbsp; 14 | class D:: B<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br />e4.cpp:15:1: error: expected unqualified-id before ‘{’ token<br />&nbsp;&nbsp; 15 | {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ^<br />e4.cpp: In function ‘int main()’:<br />e4.cpp:26:1: error: ‘D’ was not declared in this scope<br />&nbsp;&nbsp; 26 | D d;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ^<br />e4.cpp:27:6: error: ‘d’ was not declared in this scope<br />&nbsp;&nbsp; 27 | p = &amp;d; // p is set to d's address</b><br /></div>]]></description>
		</item>
		<item>
			<title>error in ass37q2</title>
			<link>https://www.emblogic.com/forum/discussion/1025/error-in-ass37q2</link>
			<pubDate>Sat, 29 Apr 2023 20:44:53 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1025@/forum/discussions</guid>
			<description><![CDATA[<div>Iam getting segmenation fault in my code:-</div><div><br /></div><div>Below is the code:-</div><div><b><br /></b></div><div><b>headers.h:</b></div><div><i><b><br /></b></i></div><div><i><b>#include&lt;stdio.h&gt;<br />#include&lt;stdlib.h&gt;<br /></b></i></div><div><br /></div><div><b>dataStructures.h:</b></div><div><i><b><br /></b></i></div><div><b><i>typedef struct {<br />&nbsp; 2 int feet;<br />&nbsp; 3 float inches;<br />&nbsp; 4 }Distfeet;<br />&nbsp; 5 typedef struct {<br />&nbsp; 6 int metres;<br />&nbsp; 7 float centimetres;<br />&nbsp; 8 }Distmeter;<br />&nbsp; 9 typedef struct {<br />&nbsp;10 Distmeter *dm;<br />&nbsp;11 Distfeet *df;<br />&nbsp;12 }Distances;</i><br /></b></div><div><b><br /></b></div><div><b>declarations.h:-</b></div><div><b><i>Distances convert(Distfeet,Distmeter );<br />Distfeet getData();<br /></i><br /></b></div><div><b>convert.c:</b></div><div><i><b><br /></b></i></div><div><b><i>#include"headers.h"<br />#include"dataStructures.h"<br />#include"declarations.h"<br />Distances convert(Distfeet d,Distmeter m) { //using normally instead of using via pointer method<br />//(d-&gt;Distfeet) *df;<br />//(d-&gt;Distmeter) *dm;<br /><a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp; printf("%s:Begin",__func__);<br />#endif<br />&nbsp;// d=(Distances*)malloc(sizeof(d));<br />&nbsp; d.inches = (d.feet)*12;<br />printf("value of feet converted to inches is: %d\n",(d.feet));<br />m.centimetres = (d.inches+d.inches)*2.54;<br />m.metres = (m.centimetres)/100;<br />printf("the converted values are %d metres %d centimetres\n",(m.metres,m.centimetres));<br /><a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />printf("%s:End.\n",__func__);<br />#endif<br />//return 0;<br />}</i><br /><br /></b></div><div><b>getData.c:</b></div><div><i><b>#include"headers.h"<br />&nbsp; 2 #include"dataStructures.h"<br />&nbsp; 3 #include"declarations.h"<br />&nbsp; 4 Distfeet getData(){<br />&nbsp; 5 <a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp; 6 printf("%s:Begin.\n",__func__);<br />&nbsp; 7 #endif<br />&nbsp; 8&nbsp;&nbsp; Distfeet df;<br />&nbsp; 9 printf("enter the distance \n");<br />&nbsp;10 scanf("%d",df.feet);<br />&nbsp;11 scanf("%f",df.inches);<br />&nbsp;12 <a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp;13&nbsp;&nbsp;&nbsp; printf("%s:End.\n",__func__);<br />&nbsp;14 #endif<br />&nbsp;15 <br />&nbsp;16 return df;<br />&nbsp;17 }</b></i><br /></div><div><b><br /></b></div><div><b>main.c:</b></div><div><b>#include"headers.h"<br />&nbsp; 2 #include"dataStructures.h"<br />&nbsp; 3 #include"declarations.h"<br />&nbsp; 4 int main(){<br />&nbsp; 5 <a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp; 6&nbsp;&nbsp; printf("%s:Begin.\n",__func__);<br />&nbsp; 7 #endif<br />&nbsp; 8&nbsp;&nbsp; Distfeet d;<br />&nbsp; 9&nbsp;&nbsp; Distmeter m;<br />&nbsp;10 d=getData();<br />&nbsp;11 convert(d,m);<br />&nbsp;12 <a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp;13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:End.\n",__func__);<br />&nbsp;14 #endif<br />&nbsp;15 return 0;<br />&nbsp;16 }<br /></b></div><div><b><br /></b></div><div><b></b><br /></div>]]></description>
		</item>
		<item>
			<title>Build error</title>
			<link>https://www.emblogic.com/forum/discussion/1023/build-error</link>
			<pubDate>Thu, 13 Apr 2023 20:42:09 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">1023@/forum/discussions</guid>
			<description><![CDATA[<div>I was building my project and these are the errors that occured:-</div><div><br /></div><div><b>server.c:</b>-</div><div><br /></div><div>#include"../Comman/headers.h"<br />&nbsp; 2 #include"../Comman/dataStruct.h"<br />&nbsp; 3 #include"declerations.h"<br />&nbsp; 4 <br />&nbsp; 5 int main()<br />&nbsp; 6 {<br />&nbsp; 7&nbsp;&nbsp;&nbsp;&nbsp; int ret;<br />&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp; pthread_t thid;<br />&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp; Infra *infra;<br />&nbsp;10 <a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp;11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s: Begin.\n", __func__);<br />&nbsp;12 #endif<br />&nbsp;13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; init();<br />&nbsp;14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; infra = (*fptr[1])(0);&nbsp;&nbsp;&nbsp;&nbsp; // creatInfra();<br />&nbsp;15 <br />&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while(1)<br />&nbsp;17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sem_wait(&amp;infra-&gt;tsem);<br />&nbsp;19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ret = pthread_create(&amp;thid, NULL, fptr[2], 0);<br />&nbsp;20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(ret == -1)<br />&nbsp;21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("pthread_create");<br />&nbsp;23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp; //&nbsp; exitProgram(); <br />&nbsp;24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;26 <br />&nbsp;27 <a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp;28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s: End.\n", __func__);<br />&nbsp;29 #endif<br />&nbsp;30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br />&nbsp;31 }<br /></div><div><br /></div><div><b>createInfra.c:-</b></div><b>void* creatInfra(void *arg)<br />{<br />&nbsp;&nbsp;&nbsp; int ret;<br />&nbsp;&nbsp;&nbsp; Infra *infra;<br /><a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s: Begin.\n", __func__);<br />#endif<br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; infra = (Infra*)malloc(sizeof(Infra));<br />&nbsp;&nbsp;&nbsp; if(!infra)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("malloc");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp; infra-&gt;pipe = (int*)malloc(sizeof(int)*2);<br />&nbsp;&nbsp;&nbsp; if(!infra-&gt;pipe)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("malloc");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; infra-&gt;fifoname = (char*)malloc(sizeof(char)*20);<br />&nbsp;&nbsp;&nbsp; if(!infra-&gt;fifoname)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("malloc");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;pipe);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; memset(infra-&gt;fifoname, '\0', 20);<br /><br />&nbsp;&nbsp;&nbsp; infra-&gt;smkey = infra-&gt;mqkey = 0;<br /><br />&nbsp;&nbsp; ret = pipe(infra-&gt;pipe);<br />&nbsp;&nbsp;&nbsp; if(ret == -1)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("pipe");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;pipe);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;fifoname);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp; ret = mkfifo(FIFONAME, 0666);<br />&nbsp;&nbsp;&nbsp; if(ret == -1)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("mkfifo");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;pipe);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;fifoname);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; infra-&gt;smkey = shmget((key_t)KEY_SHM, sizeof(Result), IPC_CREAT|0666 );<br />&nbsp;&nbsp;&nbsp; if(infra-&gt;smkey == -1)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("shmget");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;pipe);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;fifoname);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; infra-&gt;mqkey = msgget((key_t)KEY_MQ,&nbsp; IPC_CREAT|0666 );<br />&nbsp;&nbsp;&nbsp; if(infra-&gt;mqkey == -1)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("msgget");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;pipe);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;fifoname);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp; ret = sem_init(&amp;infra-&gt;tsem, 0, 1);<br />&nbsp;&nbsp;&nbsp; if(ret == -1)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("sem_init");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;pipe);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra-&gt;fifoname);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free(infra);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (*fptr[0])((void*)"failure");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // exitprogram();<br />&nbsp;&nbsp;&nbsp; }<br /><br /><a rel="nofollow" href="/forum/search?Search=%23ifdef&amp;Mode=like">#ifdef</a> DEBUG<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s: End.\n", __func__);<br />#endif<br />sem_init&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (void*)infra;<br />}<br /></b><br /><div>These are the errors encountered:-</div><div><br /></div><div>usr/bin/ld: server.o: in function `main':<br />server.c:(.text+0x44): undefined reference to `sem_wait'<br />/usr/bin/ld: server.c:(.text+0x61): undefined reference to `pthread_create'<br />/usr/bin/ld: creatInfra.o: in function `creatInfra':<br />creatInfra.c:(.text+0x2b4): undefined reference to `sem_init'<br />collect2: error: ld returned 1 exit status<br /><br /></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>initialising char*  to an empty string inside zero arg constructor</title>
			<link>https://www.emblogic.com/forum/discussion/1022/initialising-char-to-an-empty-string-inside-zero-arg-constructor</link>
			<pubDate>Thu, 06 Apr 2023 11:37:31 +0530</pubDate>
			<dc:creator>nirmalpg124</dc:creator>
			<guid isPermaLink="false">1022@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>Relevant code:</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>class revsent{</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>private:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>char* sent;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>public:</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>revsent()&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// zero argument constructor</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *sent =" " ;</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;"\n zero argument constructor running\n"&lt;&lt;"sentence:"&lt;&lt;*sent;</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>}</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>int main()</span></span></div><div><span style="font-family: Arial, Verdana;"><span>{</span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>revsent c2("This");</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span><span>	</span>return o;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>}</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>getting an error:</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>how to resolve,</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>revsent.cpp: In constructor ‘revsent::revsent()’:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>revsent.cpp:15:32: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;15 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*sent ="" ;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const char*</span></span></div><div><span style="font-family: Arial, Verdana;"><span>revsent.cpp: In function ‘int main()’:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>revsent.cpp:59:20: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp;59 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;revsent c2("This");</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>pls suggest sol</span></span></div>]]></description>
		</item>
		<item>
			<title>datacompression project</title>
			<link>https://www.emblogic.com/forum/discussion/1008/datacompression-project</link>
			<pubDate>Fri, 03 Feb 2023 14:18:17 +0530</pubDate>
			<dc:creator>ghattepragati7</dc:creator>
			<guid isPermaLink="false">1008@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>printf("%s: Begin.\n",___func__);</span></span></div><div><br /></div><div>how above line will work?</div><div>what is ___func___ ?</div>]]></description>
		</item>
		<item>
			<title>RCS</title>
			<link>https://www.emblogic.com/forum/discussion/997/rcs</link>
			<pubDate>Mon, 09 Jan 2023 18:38:23 +0530</pubDate>
			<dc:creator>nirmalpg124</dc:creator>
			<guid isPermaLink="false">997@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>Sir,</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><span style="font-family: Arial, Verdana;"><span>I wanted to ask whatever keywords we are going to have embedded into the ,v files (comma v files)&nbsp; i.e. RCS workfiles , ( hereby referring to two types of files working file and RCS file) i&nbsp; think we will be giving the inputs to these keywords through the rcs commands to confirm</span></span><div><br /></div><div>i think we can't&nbsp; feed the manual inputs into each version of an RCS file.</div><div><br /></div><div>i'm referring to these keywords:</div><div><br /></div><div><span>&nbsp;$Author$ $Date$ $Id$ $Log$</span></div><div><span><br /></span></div><div><span>Example from an RCS (,v file) :</span></div><div><br /></div><div><div><span style="font-family: Arial, Verdana;"><span>1.1</span></span></div><div><span style="font-family: Arial, Verdana;"><span>date&nbsp; &nbsp; 2022.12.20.10.10.47;&nbsp; &nbsp; author fedora;&nbsp; state Exp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>branches;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>next&nbsp; &nbsp; ;</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>desc</span></span></div><div><span style="font-family: Arial, Verdana;"><span><a rel="nofollow" href="/forum/profile/This">@This</a> function checks whether the characer is unique or not</span></span></div><div><span style="font-family: Arial, Verdana;"><span>@</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>1.1</span></span></div><div><span style="font-family: Arial, Verdana;"><span>log</span></span></div><div><span style="font-family: Arial, Verdana;"><span><a rel="nofollow" href="/forum/profile/Initial">@Initial</a> revision</span></span></div><div><span style="font-family: Arial, Verdana;"><span>@</span></span></div><div><span style="font-family: Arial, Verdana;"><span>text</span></span></div></div><div><br /></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Unable to resolve this error</title>
			<link>https://www.emblogic.com/forum/discussion/993/unable-to-resolve-this-error</link>
			<pubDate>Sun, 09 Oct 2022 10:27:28 +0530</pubDate>
			<dc:creator>gaurav133232</dc:creator>
			<guid isPermaLink="false">993@/forum/discussions</guid>
			<description><![CDATA[<div>&lt;code&gt;</div><div>q4.c:16:1: error: expected ‘,’ or ‘;’ before ‘printf’ <br />&nbsp;&nbsp; 16 | printf("sum of a and c is % d+ %c = %d \n",a,c,Ac); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ^~~~~~ <br /><br /></div><div>&lt;/code&gt;</div><div>This is the error Iam encountering in my code and this error resolves when:-</div><div><span>int AX = x+ a // This is the line which I guess is causing the issue</span><br /><b>printf("sum of a and c is % d+ %c = %d \n",a,c,Ac); <br />printf("sum of x and c is % f+ %d = %d \n",x,c,XC); <br />printf("sum of x and dx is %lf+ %f = %lf \n",dx,x,DXX); <br />printf("sum of dx and ax is %lf + %ld = %lf \n",dx,ax,DAX); <br />printf("sum of a and x is %f + %d = %d \n",x,a,AX); // this is the line which when commented the error is removed<br /></b></div><div><br /></div><div>iF ANYONE knows answer to this question plz help me with it.<br /></div>]]></description>
		</item>
		<item>
			<title>Which keyword can be used for coming out of recursion? And why ?</title>
			<link>https://www.emblogic.com/forum/discussion/948/which-keyword-can-be-used-for-coming-out-of-recursion-and-why-</link>
			<pubDate>Sat, 18 Sep 2021 16:23:20 +0530</pubDate>
			<dc:creator>murshidalam570</dc:creator>
			<guid isPermaLink="false">948@/forum/discussions</guid>
			<description><![CDATA[Which keyword can be used for coming out of recursion? And why ?]]></description>
		</item>
		<item>
			<title>ERROR FACING IN WRTE AND READ TO DEVICE</title>
			<link>https://www.emblogic.com/forum/discussion/941/error-facing-in-wrte-and-read-to-device</link>
			<pubDate>Wed, 12 May 2021 13:08:45 +0530</pubDate>
			<dc:creator>abhinandan468v</dc:creator>
			<guid isPermaLink="false">941@/forum/discussions</guid>
			<description><![CDATA[<div><br /></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431168] BUG: unable to handle kernel paging request at ffff8f504a08b100</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431179] IP: writedev+0xcd/0x1e0 [device]</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431182] PGD 67c3a067 P4D 67c3a067 PUD 0&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431190] Oops: 0000 [#4] SMP PTI</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431194] Modules linked in: device(POE) fuse nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c iptable_mangle rfkill iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables sunrpc iTCO_wdt iTCO_vendor_support snd_hda_codec_via coretemp snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core ppdev joydev lpc_ich snd_hwdep snd_seq snd_seq_device pcspkr i2c_i801 snd_pcm shpchp snd_timer snd pcc_cpufreq soundcore acpi_cpufreq parport_pc asus_atk0110 parport i915 hid_logitech_hidpp</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431274]&nbsp; video i2c_algo_bit drm_kms_helper drm ata_generic serio_raw pata_acpi atl1e hid_logitech_dj [last unloaded: device]</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431291] CPU: 1 PID: 9747 Comm: APPLICATION Tainted: P&nbsp; &nbsp; &nbsp; D&nbsp; &nbsp; OE&nbsp; &nbsp;4.14.216 #2</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431294] Hardware name: System manufacturer System Product Name/P5KPL-CM, BIOS 0512&nbsp; &nbsp; 05/19/2008</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431298] task: ffff8f5245f34a00 task.stack: ffff9bd7427ec000</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431303] RIP: 0010:writedev+0xcd/0x1e0 [device]</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431307] RSP: 0018:ffff9bd7427efdf0 EFLAGS: 00010206</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431311] RAX: ffffffffb3548c00 RBX: 0000000000000004 RCX: 0000000000000004</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431315] RDX: ffff8f52af645100 RSI: 0000000000000004 RDI: ffff8f52bf496a30</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431318] RBP: 0000000000000000 R08: 00000000000003d8 R09: 000000000000000f</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431321] R10: 0000000000000000 R11: ffffffff96a7b82d R12: ffff8f52b3548c00</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431325] R13: ffff8f525b5fbc00 R14: 000000000000002b R15: ffff8f5242cbe020</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431329] FS:&nbsp; 00007f5785b89740(0000) GS:ffff8f52bf480000(0000) knlGS:0000000000000000</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431333] CS:&nbsp; 0010 DS: 0000 ES: 0000 CR0: 0000000080050033</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431336] CR2: ffff8f504a08b100 CR3: 0000000070590000 CR4: 00000000000006e0</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431340] Call Trace:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431352]&nbsp; __vfs_write+0x36/0x180</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431360]&nbsp; ? selinux_file_permission+0x116/0x130</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431366]&nbsp; ? security_file_permission+0x3c/0xb0</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431371]&nbsp; vfs_write+0xad/0x1a0</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431376]&nbsp; SyS_write+0x5a/0xd0</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431382]&nbsp; do_syscall_64+0x74/0x190</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431388]&nbsp; entry_SYSCALL_64_after_hwframe+0x41/0xa6</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431393] RIP: 0033:0x7f57856a1ea4</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431396] RSP: 002b:00007fffddcfa718 EFLAGS: 00000246 ORIG_RAX: 0000000000000001</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431401] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f57856a1ea4</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431405] RDX: 000000000000002b RSI: 00007fffddcfa730 RDI: 0000000000000003</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431408] RBP: 00007fffddcfa770 R08: 0000000000000000 R09: 00007f57856fcd60</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431411] R10: 0000000000000003 R11: 0000000000000246 R12: 00000000004007d0</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431414] R13: 00007fffddcfa8a0 R14: 0000000000000000 R15: 0000000000000000</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431418] Code: 24 48 c7 c7 78 73 5d c0 e8 dc ba 2a d5 48 63 c5 48 03 04 24 49 8b 57 08 48 63 cb 48 89 ce 48 89 4c 24 18 48 89 44 24 08 49 63 c4 &lt;48&gt; 8b 04 c2 31 d2 48 89 c7 48 89 44 24 10 e8 10 78 c9 d4 48 8b&nbsp;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431486] RIP: writedev+0xcd/0x1e0 [device] RSP: ffff9bd7427efdf0</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431490] CR2: ffff8f504a08b100</span></span></div><div><span style="font-family: Arial, Verdana;"><span>[ 8760.431494] ---[ end trace b186f04fe3130bd4 ]---</span></span></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>What are different mechanismof switching between Kernel mode and user mode ?</title>
			<link>https://www.emblogic.com/forum/discussion/937/what-are-different-mechanismof-switching-between-kernel-mode-and-user-mode-</link>
			<pubDate>Tue, 06 Apr 2021 14:38:20 +0530</pubDate>
			<dc:creator>rahul</dc:creator>
			<guid isPermaLink="false">937@/forum/discussions</guid>
			<description><![CDATA[What are different mechanismof switching between Kernel mode and user mode ?<div id="gtx-trans"><div class="gtx-trans-icon"></div></div>]]></description>
		</item>
		<item>
			<title>Question About Insertion Sorting</title>
			<link>https://www.emblogic.com/forum/discussion/724/question-about-insertion-sorting</link>
			<pubDate>Tue, 13 Feb 2018 08:07:08 +0530</pubDate>
			<dc:creator>surajk1164</dc:creator>
			<guid isPermaLink="false">724@/forum/discussions</guid>
			<description><![CDATA[Can Someone Give me a Clear Discussion about How 'Insertion Sorting' is Faster Than 'Selection Sorting'  ? ]]></description>
		</item>
		<item>
			<title>20 errors of hello world</title>
			<link>https://www.emblogic.com/forum/discussion/818/20-errors-of-hello-world</link>
			<pubDate>Fri, 29 Nov 2019 12:10:58 +0530</pubDate>
			<dc:creator>guleriavishal34</dc:creator>
			<guid isPermaLink="false">818@/forum/discussions</guid>
			<description><![CDATA[<br />	<br />	<br />	<br />		<a rel="nofollow" href="/forum/profile/page">@page</a> { margin: 2cm }<br />		pre.cjk { font-family: "Noto Sans Mono CJK SC", monospace }<br />		p { margin-bottom: 0.25cm; line-height: 115% }<br />		code.cjk { font-family: "Noto Sans Mono CJK SC", monospace }<br />	<br /><br /><br /><p><br />	<br />	<br />	<br />		<a rel="nofollow" href="/forum/profile/page">@page</a> { margin: 2cm }<br />		p { margin-bottom: 0.25cm; line-height: 115% }<br />	<br /><br /><br /></p><p>1 Bug in<br />#include&lt;stdio.h&gt;</p><br /><p>error: expected ‘=’,<br />‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&lt;’<br />token</p><br /><p> include&lt;stdio.h&gt;</p><br /><p>missing #</p><br />	<br />	<br />	<br />		<a rel="nofollow" href="/forum/profile/page">@page</a> { margin: 2cm }<br />		p { margin-bottom: 0.25cm; line-height: 115% }<br />	<br /><br /><br /><p>2 Bug in<br />#include&lt;stdio.h&gt;</p><br /><p>hello.c:1:9: fatal<br />error: stdio.: No such file or directory</p><br /><p> #include&lt;stdio.&gt;</p><br /><p>         ^~~~~~~~</p><br /><p>missing h</p><br />]]></description>
		</item>
		<item>
			<title>20 error</title>
			<link>https://www.emblogic.com/forum/discussion/817/20-error</link>
			<pubDate>Tue, 26 Nov 2019 11:29:16 +0530</pubDate>
			<dc:creator>ashu.kuma1991</dc:creator>
			<guid isPermaLink="false">817@/forum/discussions</guid>
			<description><![CDATA[<br />	<br />	<br />	<br />		<a rel="nofollow" href="/forum/profile/page">@page</a> { margin: 0.79in }<br />		p { margin-bottom: 0.1in; line-height: 120% }<br />	<br /><br /><br /><p>1 bug=removed : <br /></p><br /><p>error: expected ‘;’<br />before ‘return’</p><br /><p> return 0;</p><br /><p><br /><br /><br /></p><br /><p>2 bug= removed ”  <br /></p><br /><p>missing terminating<br />“ character</p><br /><p><br /><br /><br /></p><br /><p>3 bug= missing<br />terminating &gt; character</p><br /><p> #include&lt;stdio.h</p><br /><p>removed = &gt;</p><br /><p><br /><br /><br /></p><br /><p>4 bug=expected ‘=’,<br />‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&lt;’<br />token</p><br /><p> include&lt;stdio.h&gt;</p><br /><p>removed = #</p><br /><p><br /><br /><br /></p><br /><p>5 bug= expected ‘=’,<br />‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘)’<br />token</p><br /><p> int main)</p><br /><p>removed = (</p><br /><p><br /><br /><br /></p><br /><p>6 bug=expected<br />declaration specifiers or ‘...’ before ‘{’ token</p><br /><p> {</p><br /><p>removed = )</p><br /><p><br /><br /><br /></p><br /><p>7 bug=missing<br />terminating &gt; character</p><br /><p> <a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a> stdio.h&gt;</p><br /><p>removed = &lt;</p><br /><p><br /><br /><br /></p><br /><p>8 bug= fatal error:<br />stdio: No such file or directory</p><br /><p> #include&lt;stdio&gt;</p><br /><p>         ^~~~~~~</p><br /><p>removed = return</p><br /><p><br /><br /><br /></p><br /><p>9 bug=expected ‘{’<br />at end of input</p><br /><p>removed = {</p><br /><p><br /><br /><br /></p><br /><p>10 bug=expected ‘;’<br />before ‘return’	</p><br /><p> return 0;</p><br /><p>removed = ;			</p><br /><p><br /><br /><br /></p><br /><p>11 bug=expected ‘;’<br />before ‘}’ token</p><br /><p> }</p><br /><p>removed = ”</p><br /><p><br /><br /><br /></p><br /><p>12 bug= expected<br />‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before<br />‘{’ token</p><br /><p> {</p><br /><p>removed = ()</p><br /><p><br /><br /><br /></p><br /><p>13 bug= stdi.h: No<br />such file or directory</p><br /><p> #include&lt;stdi.h&gt;</p><br /><p>removed =  stdio</p><br /><p><br /><br /><br /></p><br /><p><br /><br /><br /></p><br /><p><br /><br /><br /></p><br /><p>14 bug =invalid<br />preprocessing directive #inclue; did you mean <a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a>?</p><br /><p> #inclue&lt;stdio.h&gt;</p><br /><p>removed = include</p><br /><p><br /><br /><br /></p><br /><p><br /><br /><br /></p><br /><p>15 bug = expected<br />identifier or ‘(’ before ‘&lt;’ token</p><br /><p> &lt;stdio.h&gt;</p><br /><p>removed=#include</p><br /><p><br /><br /><br /></p><br /><p>16 bug = expected<br />identifier or ‘(’ before ‘)’ token</p><br /><p> ()</p><br /><p>removed = int main</p><br /><p><br /><br /><br /></p><br /><p>17 bug =expected<br />identifier or ‘(’ before ‘)’ token</p><br /><p> ()</p><br /><p>removed=printf ;</p><br /><p><br /><br /><br /></p><br /><p>18 bug =expected ‘;’<br />before numeric constant</p><br /><p>  rn 0;</p><br /><p>removed=return</p><br /><p><br /><br /><br /></p><br /><p>19bug= stdio.: No<br />such file or directory</p><br /><p> #include&lt;stdio.</p><br /><p>Removed =h&gt;</p><br /><p><br /><br /><br /></p><br /><p>20bug=expected ‘;’<br />before ‘}’ token</p><br /><p> }</p><br /><p>removed=\d)</p><br />]]></description>
		</item>
		<item>
			<title>Zombie or Defunct Process</title>
			<link>https://www.emblogic.com/forum/discussion/572/zombie-or-defunct-process</link>
			<pubDate>Fri, 15 Jan 2016 18:58:51 +0530</pubDate>
			<dc:creator>ankurg92</dc:creator>
			<guid isPermaLink="false">572@/forum/discussions</guid>
			<description><![CDATA[Zombie or Defunct Process<br />==========================<br />If a child proces tries to teminate,its association with parent remains until the parent terminates normally or calls wait.&nbsp; &nbsp;<br />- The child process entry in process table is therfore not freed up immediately.<br />- Althougth the process is no longer active, the child remains still in system because its exit code is needed to be stored in case of parent subsequently calls wait.<br />- The process becomes defunct or zombie process.<br />- It is shown by 'Z' or 'Z+' in process table.<br /><br />- If the parent is terminated abnormally, the zombie child process will not be terminated (which is not good).]]></description>
		</item>
		<item>
			<title>Summarize Your Day Here</title>
			<link>https://www.emblogic.com/forum/discussion/807/summarize-your-day-here</link>
			<pubDate>Thu, 27 Jun 2019 18:50:25 +0530</pubDate>
			<dc:creator>spatlou</dc:creator>
			<guid isPermaLink="false">807@/forum/discussions</guid>
			<description><![CDATA[Hi.]]></description>
		</item>
		<item>
			<title>bit manipulation and bit fields , compilation process , basic data types.</title>
			<link>https://www.emblogic.com/forum/discussion/806/bit-manipulation-and-bit-fields-compilation-process-basic-data-types-</link>
			<pubDate>Thu, 27 Jun 2019 18:48:21 +0530</pubDate>
			<dc:creator>akashravindra98</dc:creator>
			<guid isPermaLink="false">806@/forum/discussions</guid>
			<description><![CDATA[<div>created the custom size bit data types , structures and print its size.<br />discussed the 6 phases of compilation.</div><div>understanding of interpretation +ve and -ve numbers in system(2's compliment)<br /><br /></div>]]></description>
		</item>
		<item>
			<title>Tagline for Emblogic</title>
			<link>https://www.emblogic.com/forum/discussion/805/tagline-for-emblogic</link>
			<pubDate>Sat, 22 Jun 2019 15:05:17 +0530</pubDate>
			<dc:creator>grishabh355</dc:creator>
			<guid isPermaLink="false">805@/forum/discussions</guid>
			<description><![CDATA[1-Way better than just engineering<div>2-adding engineering to next built</div><div>3-exploring new possibilities</div>]]></description>
		</item>
		<item>
			<title>Dynamic Array in C++</title>
			<link>https://www.emblogic.com/forum/discussion/803/dynamic-array-in-c-</link>
			<pubDate>Mon, 10 Jun 2019 23:05:25 +0530</pubDate>
			<dc:creator>ashrafumair21</dc:creator>
			<guid isPermaLink="false">803@/forum/discussions</guid>
			<description><![CDATA[In C++ sessions there was an example in which an array was resized at runtime to hold realtime data of undefined iterations, without creating any new array with bigger size and replacing as done in vectors.<div><br />I am stucking here if it was achieved using Virtual functions,operator overloading ,as to create real time containers as an array of objects whose size was getting manipulated at runtime as per the incoming data.</div><div><br /></div><div>Please share the solutions so that i can go forward.&nbsp;</div>]]></description>
		</item>
		<item>
			<title>Getting an issue while installing through yum or dnf</title>
			<link>https://www.emblogic.com/forum/discussion/788/getting-an-issue-while-installing-through-yum-or-dnf</link>
			<pubDate>Sun, 24 Feb 2019 12:12:44 +0530</pubDate>
			<dc:creator>jagdishst1594</dc:creator>
			<guid isPermaLink="false">788@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>Traceback (most recent call last):</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; File "/usr/bin/dnf", line 57, in &lt;module&gt;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; from dnf.cli import main</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; File "/usr/lib/python3.7/site-packages/dnf/__init__.py", line 30, in &lt;module&gt;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; import dnf.base</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; File "/usr/lib/python3.7/site-packages/dnf/base.py", line 88, in &lt;module&gt;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; class Base(object):</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; File "/usr/lib/python3.7/site-packages/dnf/base.py", line 522, in Base</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; _TS_FLAGS_TO_RPM = {'noscripts': rpm.RPMTRANS_FLAG_NOSCRIPTS,</span></span></div><div><span style="font-family: Arial, Verdana;"><span>AttributeError: module 'rpm' has no attribute 'RPMTRANS_FLAG_NOSCRIPTS'</span></span></div><div><br /></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Malloc failed</title>
			<link>https://www.emblogic.com/forum/discussion/787/malloc-failed</link>
			<pubDate>Tue, 01 Jan 2019 00:28:17 +0530</pubDate>
			<dc:creator>sandeshgupta4u</dc:creator>
			<guid isPermaLink="false">787@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>The following error was encountered :-</span></span><div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>server:&nbsp;<b>malloc.c:2385: sysmalloc: Assertion `(old_top == initial_top (av) &amp;&amp; old_size == 0) || ((unsigned long) (old_size) &gt;= MINSIZE &amp;&amp; prev_inuse (old_top) &amp;&amp; ((unsigned long) old_end &amp; (pagesize - 1)) == 0)' failed.</b></span></span></div></div><div><br /></div><div>&lt;code&gt;<span>&nbsp;</span></div><div><span>&nbsp;&nbsp; &nbsp; &nbsp; bytes = msgrcv(*(msgid+1),rslt,sizeof(Result),0,0);</span></div><div><span>&lt;/code&gt;</span></div><div><span><br /></span></div><div><span>Description: -</span></div><div><span><br /></span></div><div><span>The error was encountered while passing a structure pointer to the second argument of&nbsp;</span><span>ssize_t&nbsp;<b>msgrcv</b>(int msqid,&nbsp;<b><span style="text-decoration: underline;">void *msgp</span></b>, size_t msgsz, long msgtyp,</span><span>&nbsp;int msgflg);&nbsp;</span><span>the declaration of the structure is as follow:</span></div><div><span><br /></span></div><div><span>&lt;code&gt;</span></div><div><span><span>	</span>tyepdef struct</span></div><div><span><span>	</span>{</span></div><div><span><span>		</span>long int pid;</span></div><div><span><span>		</span>int result;</span></div><div><span><span>	</span>}Result;</span></div><div><span>&lt;/code&gt;</span></div><div><span><br /></span></div><div><span><br /></span></div><div><span>Thanks</span></div>]]></description>
		</item>
		<item>
			<title>basic C question</title>
			<link>https://www.emblogic.com/forum/discussion/782/basic-c-question</link>
			<pubDate>Mon, 19 Nov 2018 14:39:03 +0530</pubDate>
			<dc:creator>asimaslam990</dc:creator>
			<guid isPermaLink="false">782@/forum/discussions</guid>
			<description><![CDATA[<span>Please comment on assignment of signed value (e.g -25) into an unsigned variable .</span><div><br /></div><div>What are we assigning to that unsigned variable (2's complement of 25 ) or something else??</div>]]></description>
		</item>
		<item>
			<title>How to generate assembly output with your compiler?</title>
			<link>https://www.emblogic.com/forum/discussion/768/how-to-generate-assembly-output-with-your-compiler</link>
			<pubDate>Sun, 22 Jul 2018 17:26:58 +0530</pubDate>
			<dc:creator>mohitve19</dc:creator>
			<guid isPermaLink="false">768@/forum/discussions</guid>
			<description><![CDATA[And run experiments to deduce the name decoration scheme?]]></description>
		</item>
		<item>
			<title>Sockets over a network</title>
			<link>https://www.emblogic.com/forum/discussion/769/sockets-over-a-network</link>
			<pubDate>Wed, 01 Aug 2018 09:49:27 +0530</pubDate>
			<dc:creator>abhijeet.srivastava2308</dc:creator>
			<guid isPermaLink="false">769@/forum/discussions</guid>
			<description><![CDATA[In which directory is struct in_addr present?]]></description>
		</item>
		<item>
			<title>How to write a integer value in a file  using &#039;write()&#039; ?</title>
			<link>https://www.emblogic.com/forum/discussion/767/how-to-write-a-integer-value-in-a-file-using-039write039-</link>
			<pubDate>Mon, 02 Jul 2018 17:29:17 +0530</pubDate>
			<dc:creator>akashravindra98</dc:creator>
			<guid isPermaLink="false">767@/forum/discussions</guid>
			<description><![CDATA[please explain.]]></description>
		</item>
		<item>
			<title>installation of kernel 4.15.10</title>
			<link>https://www.emblogic.com/forum/discussion/757/installation-of-kernel-4-15-10</link>
			<pubDate>Wed, 20 Jun 2018 12:47:03 +0530</pubDate>
			<dc:creator>rahul.kushwaha2695</dc:creator>
			<guid isPermaLink="false">757@/forum/discussions</guid>
			<description><![CDATA[<span style="font-family: Arial, Verdana;"><span>I try to install the kernel 4.15.10 version in my system . but when i use the make commands then its show the error .</span></span><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>The error are---</span></span></div><div><span style="font-family: Arial, Verdana;"><span><br /></span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp;</span><span>[root@localhost linux-stable-4.15.10]# make</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; CHK&nbsp; &nbsp; &nbsp;include/config/kernel.release</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; CHK&nbsp; &nbsp; &nbsp;include/generated/uapi/linux/version.h</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; CHK&nbsp; &nbsp; &nbsp;include/generated/utsrelease.h</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; CC&nbsp; &nbsp; &nbsp; arch/x86/purgatory/purgatory.o</span></span></div><div><span style="font-family: Arial, Verdana;"><span>In file included from arch/x86/purgatory/purgatory.c:13:0:</span></span></div><div><span style="font-family: Arial, Verdana;"><span>./include/linux/bug.h:5:10: fatal error: asm/bug.h: No such file or directory</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp;#include &lt;asm/bug.h&gt;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~</span></span></div><div><span style="font-family: Arial, Verdana;"><span>compilation terminated.</span></span></div><div><span style="font-family: Arial, Verdana;"><span>make[1]: *** [scripts/Makefile.build:325: arch/x86/purgatory/purgatory.o] Error 1</span></span></div><div><span style="font-family: Arial, Verdana;"><span>make: *** [arch/x86/Makefile:251: archprepare] Error 2</span></span></div><div><br /></div><div>when i check the that error path&nbsp;<span>arch/x86/purgatory/purgatory.c:13:0</span></div><div><span>then i notice that the &lt;asm/bug.h&gt; header file are not include so i include the header file and again make commands are use but same error are again its can't solve.</span></div><div><span>so pls , help me how to solve the that type for error.</span></div>]]></description>
		</item>
		<item>
			<title>use of pow function</title>
			<link>https://www.emblogic.com/forum/discussion/561/use-of-pow-function</link>
			<pubDate>Tue, 20 Oct 2015 17:28:50 +0530</pubDate>
			<dc:creator>jitu.kumar1436</dc:creator>
			<guid isPermaLink="false">561@/forum/discussions</guid>
			<description><![CDATA[#include&lt;stdio.h&gt;<br />#include&lt;math.h&gt;<br />int main()<br />{<br />&nbsp;&nbsp; &nbsp;double a=4,b=2,result;<br />&nbsp;&nbsp; &nbsp;result = pow(b,a);<br />&nbsp;&nbsp; &nbsp;printf("result is %g \n",result);<br />&nbsp;&nbsp; &nbsp;return 0;<br />}]]></description>
		</item>
		<item>
			<title>Conditional operator</title>
			<link>https://www.emblogic.com/forum/discussion/745/conditional-operator</link>
			<pubDate>Sat, 02 Jun 2018 13:31:51 +0530</pubDate>
			<dc:creator>pgaur.ece</dc:creator>
			<guid isPermaLink="false">745@/forum/discussions</guid>
			<description><![CDATA[<a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a> &lt;stdio.h&gt;<br /><a rel="nofollow" href="/forum/search?Search=%23include&amp;Mode=like">#include</a> &lt;stdlib.h&gt;<br />int main()<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int i,n,j;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Enter the size of array\n");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scanf ("%d",&amp;j);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int a[j];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Enter the elements of array\n");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i=0;i&lt;j;i++)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scanf ("%d",&amp;a[i]);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Enter the number to find in array\n");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scanf ("%d",&amp;n);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (i=0;i&lt;j;i++)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (a[i]==n)?printf("%d is present is array at %d index of array\n",n,i):continue;<br />/*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(a[i]==n)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {i<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%d is present in array at %d index of array.\n",n,i);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit (0);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;<br />*/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Entered number not found in array\n");<br /><br />return 0;<br /><div>}</div><div><br /></div><div><span>Not working with conditional operator.<br /></span></div><div><span><span>error : expected expression before continue </span><br /></span></div><br />]]></description>
		</item>
		<item>
			<title>Compile Linux Kernel with patch</title>
			<link>https://www.emblogic.com/forum/discussion/744/compile-linux-kernel-with-patch</link>
			<pubDate>Fri, 01 Jun 2018 19:50:43 +0530</pubDate>
			<dc:creator>viniboora.vini</dc:creator>
			<guid isPermaLink="false">744@/forum/discussions</guid>
			<description><![CDATA[I am trying to build Linux kernel with TBS(Time based scheduling) qdisc patch.&nbsp;<div>.<span>&nbsp;</span></div><div>I already know how to build kernel to upgrade to a newer version, But somehow i am missing a few steps to achieve the same for 'patches'.</div><div><span>Any help on how to build kernel for Linux patch is appreciated&nbsp; :)</span></div>]]></description>
		</item>
		<item>
			<title>Queue Data Structure</title>
			<link>https://www.emblogic.com/forum/discussion/742/queue-data-structure</link>
			<pubDate>Fri, 11 May 2018 19:00:15 +0530</pubDate>
			<dc:creator>surajk1164</dc:creator>
			<guid isPermaLink="false">742@/forum/discussions</guid>
			<description><![CDATA[Program for QUEUE Data Structure has been done , below is the program for <br /><br />***************Prototype****************<br /><br />int mainmenu();<br />typedef struct staack<br />{<br />	int fp;<br />	int rp;<br />	int size;<br />	int *stkptr;<br />}queue;<br />queue* creatqueue();<br />int enqueue(queue*);<br />int dequeue(queue*);<br />int display(queue*);<br /><br />****************Createqueue*************<br /><br />#include"headers.h"<br />#include"prototype.h"<br /><br />queue* creatqueue()<br />{<br />	queue *start;<br />	start = (queue*)malloc(sizeof(queue));<br />	printf("enter the size of queue\n");<br /><br />	scanf("%d",&amp;start-&gt;size);<br /><br />	start-&gt;stkptr = (int*)malloc(sizeof(int)*start-&gt;size);<br />	if(!start-&gt;stkptr)<br />	{<br />		perror("malloc");<br />		exit(EXIT_FAILURE);<br />	}	<br />	start-&gt;fp=-1;<br />	start-&gt;rp=-1;<br /><br />	return start;<br />}<br /><br /><br />*****************Enqueue***************<br /><br />#include"headers.h"<br />#include"prototype.h"<br /><br />int enqueue(queue *start)<br /><br />{<br />		if(start-&gt;rp==start-&gt;size-1) <br />		{<br />			puts("stack is full now\n");<br />			return 0;<br />		}<br />		start-&gt;rp++;<br /><br />		if(start-&gt;fp&gt;=0)<br />		{<br />			if(start-&gt;rp==start-&gt;fp) <br />			{<br />				puts("stack is full now\n");<br />				return 0;<br />			}<br />		}<br />		if(start-&gt;fp&gt;=0)<br />		{<br />			start-&gt;rp=0;<br />		}<br />			puts("enter value in the queue\n");<br />			scanf("%d",(start-&gt;stkptr+start-&gt;rp));<br /><br />}<br /><br /><br />****************Dequeue****************<br /><br />#include"headers.h"<br />#include"prototype.h"<br /><br />int dequeue(queue *start)<br />{<br />		if(start-&gt;rp==-1)<br />		{<br />			puts("stack is empty now\n");<br />			return 0;<br />		}<br />		start-&gt;fp++;<br /><br />}<br /><br />*****************Display*****************<br /><br /><br />#include"headers.h"<br />#include"prototype.h"<br /><br />int display(queue *start)<br /><br />{<br />			int i,j;<br />			j=start-&gt;rp;<br />			for(i=start-&gt;rp; i&gt;start-&gt;fp; i--)<br />			{<br />				if(start-&gt;fp&gt;0)<br />				{<br />					start-&gt;rp=start-&gt;size-1;<br />					printf("| %d &gt;&gt;--&gt;&gt; %d |\n",i,*(start-&gt;stkptr+i));<br />					start-&gt;rp=j;<br />				}<br /><br />				printf("| %d &gt;&gt;--&gt;&gt; %d |\n",i,*(start-&gt;stkptr+i));<br />			}<br /><br />}]]></description>
		</item>
		<item>
			<title>c programming</title>
			<link>https://www.emblogic.com/forum/discussion/725/c-programming</link>
			<pubDate>Thu, 15 Feb 2018 23:11:22 +0530</pubDate>
			<dc:creator>sushantpatil3314</dc:creator>
			<guid isPermaLink="false">725@/forum/discussions</guid>
			<description><![CDATA[Declare an integer variable. Assign a value -5 to check print its positive value.<br />How to print the positive value because after using unsigned int it is not printing the positive value<br />]]></description>
		</item>
		<item>
			<title>Query</title>
			<link>https://www.emblogic.com/forum/discussion/741/query</link>
			<pubDate>Tue, 08 May 2018 23:46:13 +0530</pubDate>
			<dc:creator>surajk1164</dc:creator>
			<guid isPermaLink="false">741@/forum/discussions</guid>
			<description><![CDATA[Is there any command in Linux to recover our deleted files ...??]]></description>
		</item>
		<item>
			<title>Query about Function pointers</title>
			<link>https://www.emblogic.com/forum/discussion/737/query-about-function-pointers</link>
			<pubDate>Fri, 04 May 2018 09:13:11 +0530</pubDate>
			<dc:creator>surajk1164</dc:creator>
			<guid isPermaLink="false">737@/forum/discussions</guid>
			<description><![CDATA[Can someone tell me how function pointers increases the speed of  compilation and execution of our program ?]]></description>
		</item>
		<item>
			<title>Interview Questions</title>
			<link>https://www.emblogic.com/forum/discussion/731/interview-questions</link>
			<pubDate>Sun, 01 Apr 2018 02:29:28 +0530</pubDate>
			<dc:creator>bhardwaj_himanshu</dc:creator>
			<guid isPermaLink="false">731@/forum/discussions</guid>
			<description><![CDATA[Hello friends there are some interview questions which has been asked during interview you can put your answer over these questions.<div>1.what is difference between function pointer and pointer to function.</div><div><br /></div><div>2. can i store value 300 into a character variable?</div><div><br /></div><div>3.What is the maximum size for a link list?</div><div><br /></div><div>4 How we can know that there is Heap-stack overflow occured?</div><div><br /></div><div>5.Most Important&nbsp;</div><div><span>	</span>a)Byte Ordering</div><div><span>	</span>b) Setting a Bit</div><div><span>	</span>c) Clearing a bit</div><div><span>	</span>d) Toggle a bit.</div><div><span>	</span>e) Get a bit.</div><div><span>	</span>f) Swap a bit.</div><div><span>	</span>g) count number of high bits</div><div><br /></div><div>these are some questions you all are welcomed to post your answer</div>]]></description>
		</item>
		<item>
			<title>Query</title>
			<link>https://www.emblogic.com/forum/discussion/716/query</link>
			<pubDate>Fri, 12 Jan 2018 21:53:18 +0530</pubDate>
			<dc:creator>ayush9529650043</dc:creator>
			<guid isPermaLink="false">716@/forum/discussions</guid>
			<description><![CDATA[Please anyone explain the difference between return(0) and exit (0). Nd also mean of exit (1).]]></description>
		</item>
		<item>
			<title>__DEVICE_DRIVERS()</title>
			<link>https://www.emblogic.com/forum/discussion/726/__device_drivers</link>
			<pubDate>Fri, 16 Feb 2018 23:26:10 +0530</pubDate>
			<dc:creator>ashrafumair21</dc:creator>
			<guid isPermaLink="false">726@/forum/discussions</guid>
			<description><![CDATA[What Log does this path have ?<br />/run/log/jounal&nbsp; <br />as in /dev : ll<br />log&nbsp; <br />exits with this <br />lrwxrwxrwx&nbsp;&nbsp; 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 28 Feb&nbsp; 8 19:23 log -&gt; /run/systemd/journal/dev-log =<br /><br />How to open it and what does it have ?<br /><br />]]></description>
		</item>
		<item>
			<title>hw to remove kernel in linux ??</title>
			<link>https://www.emblogic.com/forum/discussion/705/hw-to-remove-kernel-in-linux-</link>
			<pubDate>Sun, 17 Dec 2017 22:20:05 +0530</pubDate>
			<dc:creator>ps.hpk001</dc:creator>
			<guid isPermaLink="false">705@/forum/discussions</guid>
			<description><![CDATA[<div><br /></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Carecter Device Driver</title>
			<link>https://www.emblogic.com/forum/discussion/722/carecter-device-driver</link>
			<pubDate>Fri, 02 Feb 2018 02:42:11 +0530</pubDate>
			<dc:creator>shub.sharma007</dc:creator>
			<guid isPermaLink="false">722@/forum/discussions</guid>
			<description><![CDATA[While allocating the size for the quantum of Qset pointer variable, this kind of bug occuring everytime.<br />Please give an explanation for this kind of bugs<br /><br /><br />[38913.266017] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008<br />[38913.266032] IP: creatDev+0x59/0xec [allocmemory]<br />[38913.266035] PGD 800000017a07a067 P4D 800000017a07a067 PUD 1255f4067 PMD 0 <br />[38913.266045] Oops: 0002 [#1] SMP PTI<br />[38913.266048] Modules linked in: allocmemory(OE) vfat fat uas usb_storage nf_nat_h323 nf_conntrack_h323 nf_nat_pptp nf_nat_proto_gre nf_conntrack_pptp nf_conntrack_proto_gre nf_nat_tftp nf_conntrack_tftp nf_nat_sip nf_conntrack_sip nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp bnep fuse ccm xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables<br />[38913.266113]&nbsp; sunrpc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core snd_hda_codec_hdmi intel_rapl intel_soc_dts_thermal intel_soc_dts_iosf intel_powerclamp coretemp kvm_intel arc4 videodev snd_hda_codec_realtek rt2800pci kvm rt2800mmio rt2800lib rt2x00pci irqbypass snd_hda_codec_generic rt2x00mmio media rt2x00lib wmi_bmof iTCO_wdt hp_wmi iTCO_vendor_support snd_hda_intel crct10dif_pclmul crc32_pclmul snd_hda_codec snd_intel_sst_acpi snd_intel_sst_core snd_soc_sst_atom_hifi2_platform ghash_clmulni_intel mac80211 cfg80211 snd_soc_sst_match hci_uart intel_cstate snd_soc_core rtsx_pci_ms btbcm btqca snd_compress memstick eeprom_93cx6 snd_pcm_dmaengine ac97_bus snd_hda_core snd_hwdep btintel bluetooth snd_seq snd_seq_device joydev snd_pcm snd_timer wmi ecdh_generic hp_accel rfkill_gpio<br />[38913.266182]&nbsp; lis3lv02d input_polldev dw_dmac snd soundcore intel_vbtn sparse_keymap lpc_ich intel_int0002_vgpio rfkill spi_pxa2xx_platform shpchp mei_txe hp_wireless mei i2c_i801 binfmt_misc i915 rtsx_pci_sdmmc i2c_algo_bit crc32c_intel drm_kms_helper drm serio_raw r8169 rtsx_pci mii sdhci_acpi video sdhci mmc_core i2c_hid pwm_lpss_platform pwm_lpss [last unloaded: allocmemory]<br /><br />]]></description>
		</item>
		<item>
			<title>Queue DS</title>
			<link>https://www.emblogic.com/forum/discussion/717/queue-ds</link>
			<pubDate>Mon, 22 Jan 2018 23:24:11 +0530</pubDate>
			<dc:creator>sajanjha173</dc:creator>
			<guid isPermaLink="false">717@/forum/discussions</guid>
			<description><![CDATA[<h1>Project : Queue DS<br /></h1><br /><h1><a rel="nofollow" href="https://github.com/sajan1992/Queue#autor-sajan-kumar-jha" class="anchor" id="user-content-autor-sajan-kumar-jha"></a>Autor: Sajan Kumar Jha</h1><br /><p>Description : This project best explains the working of data handling<br /> in queue structure.Since we know that queue is a data structure which <br />follows the FIFO algorithm.Here we have used a struct which has the <br />following data member:</p><br /><pre><code>                                        typedef struct<br />                                        {<br />                                            int * queue; //pointer which points the array of length equals to size<br />                                            int fi; //front index<br />                                            int ri; //rear index<br />                                            int size; //define the length of queue<br />                                         }<br /></code></pre><br /><p>so as we know that queue follows FIFO scheme,thus the algorithm to perform enqueue is given as:</p><br /><pre><code>            (Condition for enQueue)<br />                          <br />                            if ri(rear index) is &amp;gt;= (size - 1) then Queue is full<br />                            else ri++;<br />                            and store value at index ri as *(queue + ri) = val;<br /></code></pre><br /><p>Now the algorithm for deQueue is as follows:</p><br /><pre><code>            (Condition for deQueue)<br />                          <br />                            if (fi(front index) == ri(rear index))<br />                            then {<br />                                    queue is empty;<br />                                    fi = ri = -1;<br />                                    return 0;<br />                                    }<br />                            fi++;<br />                            and read value from queue at index fi;<br />                            check once again if (fi == ri) then fi = ri = -1;<br /></code></pre>]]></description>
		</item>
		<item>
			<title>Linux System Administration</title>
			<link>https://www.emblogic.com/forum/discussion/644/linux-system-administration</link>
			<pubDate>Mon, 29 May 2017 23:41:11 +0530</pubDate>
			<dc:creator>kartik.gupta</dc:creator>
			<guid isPermaLink="false">644@/forum/discussions</guid>
			<description><![CDATA[How can we hibernate linux system. what is the command for that??]]></description>
		</item>
		<item>
			<title>How IPC is used in the industry .What is it industrial use ?</title>
			<link>https://www.emblogic.com/forum/discussion/708/how-ipc-is-used-in-the-industry-what-is-it-industrial-use-</link>
			<pubDate>Sat, 23 Dec 2017 09:31:50 +0530</pubDate>
			<dc:creator>mohdkokub</dc:creator>
			<guid isPermaLink="false">708@/forum/discussions</guid>
			<description><![CDATA[What is IPC ? How it is used in the industry ?]]></description>
		</item>
		<item>
			<title>Is there any logical error if we not initilized the msgctl while using the msgqueue?</title>
			<link>https://www.emblogic.com/forum/discussion/707/is-there-any-logical-error-if-we-not-initilized-the-msgctl-while-using-the-msgqueue</link>
			<pubDate>Thu, 21 Dec 2017 16:04:26 +0530</pubDate>
			<dc:creator>sushantpatil3314</dc:creator>
			<guid isPermaLink="false">707@/forum/discussions</guid>
			<description><![CDATA[msgctl(key_t,command,msgid_ds *buf);<br />This is the snytax. I have not initilized then also the output comes properly for three requesting client. If I increased the client then it will be required to initilized ? <br />]]></description>
		</item>
		<item>
			<title>Superuser login issue (ssh) after chsh</title>
			<link>https://www.emblogic.com/forum/discussion/700/superuser-login-issue-ssh-after-chsh</link>
			<pubDate>Sat, 09 Dec 2017 14:41:48 +0530</pubDate>
			<dc:creator>bhardwaj.charak</dc:creator>
			<guid isPermaLink="false">700@/forum/discussions</guid>
			<description><![CDATA[ I wanted to change my default Fedora bash shell to ssh (as a superuser).<br /><br />So, using chsh command gave the address /bin/ssh. Logout the <br />superuser. But after login as su, I am unable  to login and getting this<br /> issue:- <br /><br /><br /><br />/*Issue*/<br /><br />&lt;pre&gt;usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]<br /><br />           [-D [bind_address:]port] [-E log_file] [-e escape_char]<br /><br />           [-F configfile] [-I pkcs11] [-i identity_file]<br /><br />           [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]<br /><br />           [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]<br /><br />           [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]<br /><br />           [user@]hostname [command]&lt;/pre&gt;<br /><br /><br /><br />Moreover, the terminal echoes current shell as bash.]]></description>
		</item>
		<item>
			<title>105_IPC</title>
			<link>https://www.emblogic.com/forum/discussion/697/105_ipc</link>
			<pubDate>Sun, 26 Nov 2017 02:45:43 +0530</pubDate>
			<dc:creator>bhardwaj_himanshu</dc:creator>
			<guid isPermaLink="false">697@/forum/discussions</guid>
			<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int fd;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char sfd;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char *ch;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ch = (char*)malloc(sizeof(char)*40);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!ch)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("malloc");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(EXIT_FAILURE);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Enter some string to write in file\n");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fgets(ch,30,stdin);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:Begin :File %d:pid\n",__FILE__,getpid());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fd = open("myfile",O_RDWR);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write(fd,ch,30);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sprintf(&amp;sfd,"%d",fd);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; execl("./hii","hii.c",&amp;sfd,NULL);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:End&nbsp; %d:pid\n",__FILE__,getpid());<br />}<br />~&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />Here i am able to open the file and write some data and pass this file descriptor to another proceess where i am using to read this file <br />The Question is i am able to receive this file descriptor and file is also able to open for read but when i am printing the character the other process is not printing the charachters or data<br /><br />code for other process is<br />=====================================<br /><br />int main(int argc ,char *argv[])<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int fd,i;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char c;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:Begin :File %d:pid\n",__FILE__,getpid());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fd = atoi(argv[1]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("Hello!!!Never lose your Hope,Tomorrow will be a new Sunshine :) \n");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:argv[0]\n",argv[0]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:argv[1]\n",argv[1]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s:argv[2]\n",argv[2]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(read(fd,&amp;c,1)==-1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perror("read");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(EXIT_FAILURE);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%d:fd\n",fd);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(" %c:c\n",c);<br /><br />======================================================= Any suggestion&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />~&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />~&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />]]></description>
		</item>
		<item>
			<title>DATATYPES</title>
			<link>https://www.emblogic.com/forum/discussion/683/datatypes</link>
			<pubDate>Sat, 07 Oct 2017 10:08:34 +0530</pubDate>
			<dc:creator>sakshi.mishra2710</dc:creator>
			<guid isPermaLink="false">683@/forum/discussions</guid>
			<description><![CDATA[<b>Storage class</b> :- In addition to datatypes variable has one or more attribute and that is class.It is of 4 types.<br /><br /><b>Automatic</b> - When a variable declared inside a function block then by default it is assumed automatic but we can also use a keyword auto [not necessary]. Variables with auto keyword get initialized when it is called and as soon as function is over it get destroyed.<br /><b>Register</b> - When a variable is frequently used then it can be declared with register keyword , it is stored in CPU's register. &amp; is not used in this.<br /><b>External</b> - Variables that are to be used in diffrent files we can declare&nbsp; it with extern keyword.<br /><b>Static </b>- They are also like automatic variable but they exist till the end of program i.e not created or destroyed everytime function is called.<br /><b>Global</b> - Global variable remains till the end of program.<br /><br />]]></description>
		</item>
		<item>
			<title>DATATYPES</title>
			<link>https://www.emblogic.com/forum/discussion/682/datatypes</link>
			<pubDate>Fri, 06 Oct 2017 17:46:27 +0530</pubDate>
			<dc:creator>sakshi.mishra2710</dc:creator>
			<guid isPermaLink="false">682@/forum/discussions</guid>
			<description><![CDATA[<b>Datatypes</b> - It is use to define type of data. A variable can only be used in program if it is not declared with a datatype.<br />Datatypes are helpful in determining how much space will it take in memory. Datatypes are&nbsp; mainly of 4 types.<br /><br /><b>Int</b> - It is use to store integer values. It take 4 bytes of memory space on 32 bit system.<br /><br /><b>Char</b>- It is used to&nbsp; store character values. It takes 1 byte of memory. <br /><br /><b>float-</b>It is use to store single precision floating point number. It takes 4 bytes of memory.<br /><br /><b>double</b>-It is use to store double precision floating point number. It takes 8 bytes of memory.<br /><br />]]></description>
		</item>
		<item>
			<title>Emblogic android application</title>
			<link>https://www.emblogic.com/forum/discussion/674/emblogic-android-application</link>
			<pubDate>Tue, 12 Sep 2017 00:06:06 +0530</pubDate>
			<dc:creator>ashrafumair21</dc:creator>
			<guid isPermaLink="false">674@/forum/discussions</guid>
			<description><![CDATA[How to open documents ? ]]></description>
		</item>
		<item>
			<title>orphan process</title>
			<link>https://www.emblogic.com/forum/discussion/573/orphan-process</link>
			<pubDate>Fri, 15 Jan 2016 18:59:29 +0530</pubDate>
			<dc:creator>ankurg92</dc:creator>
			<guid isPermaLink="false">573@/forum/discussions</guid>
			<description><![CDATA[Orphan Process<br />===============<br />If in a process, the parent process is terminated before the child process, the child process become orphan <br />- It takes the lowest possible process as its parent <br />- And its PPID is changed to the PID of its new parent process.<br />- Mostly the new parent process in init process (PID = 1).<br /><br /><br />]]></description>
		</item>
		<item>
			<title>System call vs C library</title>
			<link>https://www.emblogic.com/forum/discussion/586/system-call-vs-c-library</link>
			<pubDate>Sat, 19 Mar 2016 13:37:40 +0530</pubDate>
			<dc:creator>7abhik</dc:creator>
			<guid isPermaLink="false">586@/forum/discussions</guid>
			<description><![CDATA[what is difference between system call and c library ?]]></description>
		</item>
		<item>
			<title>how i remove return value of scanf at a[0] for this code</title>
			<link>https://www.emblogic.com/forum/discussion/660/how-i-remove-return-value-of-scanf-at-a0-for-this-code</link>
			<pubDate>Fri, 28 Jul 2017 16:42:34 +0530</pubDate>
			<dc:creator>lkshchoudhary004</dc:creator>
			<guid isPermaLink="false">660@/forum/discussions</guid>
			<description><![CDATA[<div><span style="font-family: Arial, Verdana;"><span>#include&lt;stdio.h&gt;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>int main()</span></span></div><div><span style="font-family: Arial, Verdana;"><span>{</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; printf("enter the string\n");</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; char a[]={scanf("%s",a)};</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; printf("the string is =%s\n",a);</span></span></div><div><span style="font-family: Arial, Verdana;"><span>&nbsp; &nbsp; &nbsp; &nbsp; return 0;</span></span></div><div><span style="font-family: Arial, Verdana;"><span>}</span></span></div><div><br /></div>]]></description>
		</item>
		<item>
			<title>Embedded Lovers : B 97 :Work log /Useful Information only --NO QUERIES PLZ--</title>
			<link>https://www.emblogic.com/forum/discussion/635/embedded-lovers-b-97-work-log-useful-information-only-no-queries-plz-</link>
			<pubDate>Mon, 08 May 2017 08:42:22 +0530</pubDate>
			<dc:creator>sankalpnegi2310</dc:creator>
			<guid isPermaLink="false">635@/forum/discussions</guid>
			<description><![CDATA[Share the work done or any useful info u come across while learning..it may include info/tips/tricks..DO NOT POST QUERIES..For queries use the query forum..<br />]]></description>
		</item>
		<item>
			<title>brightness keys not working</title>
			<link>https://www.emblogic.com/forum/discussion/652/brightness-keys-not-working</link>
			<pubDate>Wed, 05 Jul 2017 16:47:18 +0530</pubDate>
			<dc:creator>ps.hpk001</dc:creator>
			<guid isPermaLink="false">652@/forum/discussions</guid>
			<description><![CDATA[I installed fedora 20 on my hp laptop .One problem i face after installation .Brightness keys not working..pls any one knows hw to fix this problem pls help m]]></description>
		</item>
		<item>
			<title>can anybody help why the value of a is printed 10 in below code?Thanks!</title>
			<link>https://www.emblogic.com/forum/discussion/659/can-anybody-help-why-the-value-of-a-is-printed-10-in-below-codethanks</link>
			<pubDate>Sun, 23 Jul 2017 15:32:24 +0530</pubDate>
			<dc:creator>jacobgeorge2101</dc:creator>
			<guid isPermaLink="false">659@/forum/discussions</guid>
			<description><![CDATA[#include&lt;stdio.h&gt;<br /><br />int main()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; union var<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int a, b;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; union var v;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v.a=10;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v.b=20;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%d\n", v.a);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br />}<br /><br />]]></description>
		</item>
   </channel>
</rss>