<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Mehul Sharma</title>
	<atom:link href="https://www.emblogic.com/blog/author/mehul_sharma77/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Record maintained using structure</title>
		<link>https://www.emblogic.com/blog/07/record-maintained-using-structure/</link>
		<comments>https://www.emblogic.com/blog/07/record-maintained-using-structure/#comments</comments>
		<pubDate>Sun, 20 Jul 2014 06:03:07 +0000</pubDate>
		<dc:creator><![CDATA[Mehul Sharma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11173</guid>
		<description><![CDATA[1#include &#60;stdio.h&#62; 2 struct student 3 { 4        char name[50]; 5            int roll; 6                float marks; 7 }; 8 int main() 9 { 10 { 11         printf(&#8220;===========================================\n&#8221;); 12         printf(&#8221;                menu                       \n&#8221;); 13         printf(&#8220;===========================================\n&#8221;); 14         printf(&#8220;1.add student record\n&#8221;); 15         printf(&#8220;2.delete student &#8230; <a href="https://www.emblogic.com/blog/07/record-maintained-using-structure/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>1#include &lt;stdio.h&gt;<br />
2 struct student<br />
3 {<br />
4        char name[50];<br />
5            int roll;<br />
6                float marks;<br />
7 };<br />
8 int main()<br />
9 {<br />
10 {<br />
11         printf(&#8220;===========================================\n&#8221;);<br />
12         printf(&#8221;                menu                       \n&#8221;);<br />
13         printf(&#8220;===========================================\n&#8221;);<br />
14         printf(&#8220;1.add student record\n&#8221;);<br />
15         printf(&#8220;2.delete student record\n&#8221;);<br />
16         printf(&#8220;3.update student record\n&#8221;);<br />
17         printf(&#8220;4.view all student record\n&#8221;);<br />
18 }<br />
19<br />
20 {<br />
21   struct student s[10];<br />
22    int i;<br />
23   printf(&#8220;Enter information of students:\n&#8221;);<br />
24  for(i=0;i&lt;10;++i)<br />
25   {<br />
26      s[i].roll=i+1;<br />
27      printf(&#8220;\nFor roll number %d\n&#8221;,s[i].roll);<br />
28      printf(&#8220;Enter name: &#8220;);</p>
<p>29      scanf(&#8220;%s&#8221;,s[i].name);<br />
30      printf(&#8220;Enter marks: &#8220;);<br />
31      scanf(&#8220;%f&#8221;,&amp;s[i].marks);<br />
32      printf(&#8220;\n&#8221;);<br />
33<br />
34       }<br />
35     printf(&#8220;Displaying information of students:\n\n&#8221;);<br />
36     for(i=0;i&lt;10;++i)<br />
37    printf(&#8220;\nInformation for roll number %d:\n&#8221;,i+1);<br />
38     printf(&#8220;Name: &#8220;);<br />
39     puts(s[i].name);<br />
40    printf(&#8220;Marks: %.1f&#8221;,s[i].marks);<br />
41<br />
42 }  return 0;<br />
43 }</p>
<p>note:- till date output is</p>
<p>enter roll no</p>
<p>enter student name</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/record-maintained-using-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>concatinate two strings using function,pointer and memory allocation</title>
		<link>https://www.emblogic.com/blog/07/concatinate-two-strings-using-functionpointer-and-memory-allocation/</link>
		<comments>https://www.emblogic.com/blog/07/concatinate-two-strings-using-functionpointer-and-memory-allocation/#comments</comments>
		<pubDate>Thu, 17 Jul 2014 03:53:22 +0000</pubDate>
		<dc:creator><![CDATA[Mehul Sharma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11051</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; #include&#60;stdlib.h&#62; int main() { char a[20]={0},b[10]={0}; int i,j=0; printf(&#8220;Enter name1:\n&#8221;); scanf(&#8220;%s&#8221;,a); printf(&#8220;Enter second name:\n&#8221;); scanf(&#8220;%s&#8221;,b); for(i=0;i&#60;20;i++) { if(a[i]==&#8221;) { a[i]=b[j]; j++; } } printf(&#8220;Concatination is: %s\n&#8221;,a); return 0; } &#160; note: &#8211; output enter the name 1=hye enter the &#8230; <a href="https://www.emblogic.com/blog/07/concatinate-two-strings-using-functionpointer-and-memory-allocation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;<br />
#include&lt;stdlib.h&gt;<br />
int main()<br />
{<br />
char a[20]={0},b[10]={0};<br />
int i,j=0;<br />
printf(&#8220;Enter name1:\n&#8221;);<br />
scanf(&#8220;%s&#8221;,a);<br />
printf(&#8220;Enter second name:\n&#8221;);<br />
scanf(&#8220;%s&#8221;,b);<br />
for(i=0;i&lt;20;i++)<br />
{<br />
if(a[i]==&#8221;)<br />
{<br />
a[i]=b[j]; j++;<br />
}<br />
}<br />
printf(&#8220;Concatination is: %s\n&#8221;,a);<br />
return 0;<br />
}</p>
<p>&nbsp;</p>
<p>note: &#8211; output</p>
<p>enter the name 1=hye</p>
<p>enter the name 2=dude</p>
<p>concatination is hyedude</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/concatinate-two-strings-using-functionpointer-and-memory-allocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>program to attach two string</title>
		<link>https://www.emblogic.com/blog/07/program-to-attach-two-string/</link>
		<comments>https://www.emblogic.com/blog/07/program-to-attach-two-string/#comments</comments>
		<pubDate>Tue, 15 Jul 2014 07:25:57 +0000</pubDate>
		<dc:creator><![CDATA[Mehul Sharma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11031</guid>
		<description><![CDATA[1#include &#60;stdio.h&#62; 2 #include &#60;string.h&#62; 3int main() 4 { 5 char a[100],b[100]; 6  printf(&#8220;Enter the first string\n&#8221;); 7          fgets(a); 8           printf(&#8220;Enter the second string\n&#8221;); 9          fgets(b); 10           strcat(a,b); 11           printf(&#8220;String obtained on concatenation is %s\n&#8221;,a); &#8230; <a href="https://www.emblogic.com/blog/07/program-to-attach-two-string/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>1#include &lt;stdio.h&gt;<br />
2 #include &lt;string.h&gt;<br />
3int main()<br />
4 {<br />
5 char a[100],b[100];<br />
6  printf(&#8220;Enter the first string\n&#8221;);<br />
7          fgets(a);<br />
8           printf(&#8220;Enter the second string\n&#8221;);<br />
9          fgets(b);<br />
10           strcat(a,b);<br />
11           printf(&#8220;String obtained on concatenation is %s\n&#8221;,a);<br />
12              return 0;<br />
13 }</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/program-to-attach-two-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>file handling</title>
		<link>https://www.emblogic.com/blog/07/file-handling/</link>
		<comments>https://www.emblogic.com/blog/07/file-handling/#comments</comments>
		<pubDate>Tue, 15 Jul 2014 06:21:56 +0000</pubDate>
		<dc:creator><![CDATA[Mehul Sharma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=11028</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; #include&#60;stdlib.h&#62; #include&#60;fcntl.h&#62; int main() { int count,fd; char buf[50]; fd=open(&#8220;filem.c&#8221;,O_RDONLY,S_IRWXU); count=read(fd,buf,50); if(fd&#60;0) { perror(&#8220;open&#8221;); exit(-1); } printf(&#8220;the value of count=%d and value of buf=%s&#8221;,count,buf); close(fd); } &#160; note :-       where file : filem.c contain data &#8220;she sells sea shell &#8230; <a href="https://www.emblogic.com/blog/07/file-handling/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;</p>
<p>#include&lt;stdlib.h&gt;</p>
<p>#include&lt;fcntl.h&gt;</p>
<p>int main()</p>
<p>{</p>
<p>int count,fd;</p>
<p>char buf[50];</p>
<p>fd=open(&#8220;filem.c&#8221;,O_RDONLY,S_IRWXU);</p>
<p>count=read(fd,buf,50);</p>
<p>if(fd&lt;0)</p>
<p>{</p>
<p>perror(&#8220;open&#8221;);</p>
<p>exit(-1);</p>
<p>}</p>
<p>printf(&#8220;the value of count=%d and value of buf=%s&#8221;,count,buf);</p>
<p>close(fd);</p>
<p>}</p>
<p>&nbsp;</p>
<p>note :-       where file : filem.c contain data &#8220;she sells sea shell at sea shore&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/file-handling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Program to combine two words without string char or compair</title>
		<link>https://www.emblogic.com/blog/07/program-to-combine-two-words-without-string-char-or-compair/</link>
		<comments>https://www.emblogic.com/blog/07/program-to-combine-two-words-without-string-char-or-compair/#comments</comments>
		<pubDate>Fri, 11 Jul 2014 07:14:33 +0000</pubDate>
		<dc:creator><![CDATA[Mehul Sharma]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=10893</guid>
		<description><![CDATA[#include&#60;stdio.h&#62; int main() { char j,i,a[15]=&#8221;hello&#8221;,b[15]=&#8221;world&#8221;,**p; while(a[i]!=&#8221;) { i++; } for(j=0;b[j]!=&#8221;;j++) { a[i+j]=b[j]; } printf(&#8220;%s&#8221;a) &#160; }]]></description>
				<content:encoded><![CDATA[<p>#include&lt;stdio.h&gt;</p>
<p>int main()</p>
<p>{</p>
<p>char j,i,a[15]=&#8221;hello&#8221;,b[15]=&#8221;world&#8221;,**p;</p>
<p>while(a[i]!=&#8221;)</p>
<p>{</p>
<p>i++;</p>
<p>}</p>
<p>for(j=0;b[j]!=&#8221;;j++)</p>
<p>{</p>
<p>a[i+j]=b[j];</p>
<p>}</p>
<p>printf(&#8220;%s&#8221;a)</p>
<p>&nbsp;</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/program-to-combine-two-words-without-string-char-or-compair/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
