<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: C interview puzzles &#8211; semicolon programs, delete or replace a line in a text file</title>
	<atom:link href="http://www.interviewmantra.net/2008/12/c-interview-questions-with-solutions-4.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.interviewmantra.net/2008/12/c-interview-questions-with-solutions-4.html</link>
	<description>Your mantra to job success</description>
	<lastBuildDate>Fri, 10 Feb 2012 11:11:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sridhar</title>
		<link>http://www.interviewmantra.net/2008/12/c-interview-questions-with-solutions-4.html/comment-page-1#comment-33</link>
		<dc:creator>Sridhar</dc:creator>
		<pubDate>Tue, 13 Oct 2009 17:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2008/12/c-interview-puzzles-semicolon-programs-delete-or-replace-a-line-in-a-text-file/#comment-33</guid>
		<description>@ashik,

&amp; is not required in scanf while reading a string using %s. scanf expects a pointer in its arguments corresponding to the format specified (%d, %c, %s etc).

In this case, filename[40] is a character array. So filename refers to the base address that is amp;filename[0]. So that line is valid.

Anyways thanks for stopping by. Keeping coming back to check latest articles in this blog. And keep commenting.

--Sridhar</description>
		<content:encoded><![CDATA[<p>@ashik,</p>
<p>&#038; is not required in scanf while reading a string using %s. scanf expects a pointer in its arguments corresponding to the format specified (%d, %c, %s etc).</p>
<p>In this case, filename[40] is a character array. So filename refers to the base address that is amp;filename[0]. So that line is valid.</p>
<p>Anyways thanks for stopping by. Keeping coming back to check latest articles in this blog. And keep commenting.</p>
<p>&#8211;Sridhar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashik</title>
		<link>http://www.interviewmantra.net/2008/12/c-interview-questions-with-solutions-4.html/comment-page-1#comment-34</link>
		<dc:creator>ashik</dc:creator>
		<pubDate>Fri, 02 Oct 2009 19:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2008/12/c-interview-puzzles-semicolon-programs-delete-or-replace-a-line-in-a-text-file/#comment-34</guid>
		<description>hey dude,in prog 38 in line no 12 u must add &#039;&amp;&#039; before &#039;filename&#039; in scanf statement</description>
		<content:encoded><![CDATA[<p>hey dude,in prog 38 in line no 12 u must add &#8216;&#038;&#8217; before &#8216;filename&#8217; in scanf statement</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.interviewmantra.net @ 2012-02-10 23:39:12 -->
