<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Geeks Talk - C and C++</title>
		<link>http://www.geekinterview.com/talk/</link>
		<description />
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 11:38:02 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.geekinterview.com/talk/images/misc/rss.jpg</url>
			<title>Geeks Talk - C and C++</title>
			<link>http://www.geekinterview.com/talk/</link>
		</image>
		<item>
			<title>A program using pointers</title>
			<link>http://www.geekinterview.com/talk/16561-a-program-using-pointers.html</link>
			<pubDate>Wed, 18 Nov 2009 10:46:46 GMT</pubDate>
			<description>Hi All, 
 
      The following program compiled without error.But when I run it the output is erroneous.Can sombody pointout the mistake in the code....</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
      The following program compiled without error.But when I run it the output is erroneous.Can sombody pointout the mistake in the code.<br />
<br />
/*Product of two matrices*/<br />
#include &quot;stdio.h&quot;<br />
#define MAXCOLS 10<br />
Main( )<br />
{<br />
  int fmrows,fmcols,smrows,smcols,i,j,m,n,p;<br />
 int (*a)[MAXCOLS],int (*b)[MAXCOLS],int (*c)[MAXCOLS];<br />
  void readinput(int (*a)[MAXCOLS],int m,int n);<br />
  void computeprod(int (*a)[MAXCOLS],int (*b)[MAXCOLS],int (*c)[MAXCOLS],int m,int n, int p);<br />
  void writeoutput(int (*c)[MAXCOLS],int m,int p);<br />
clrscr();<br />
printf(&quot;How many rows for a?&quot;);<br />
scanf(&quot;%d&quot;,&amp;fmrows);<br />
printf(&quot;How many columns for a?&quot;);<br />
scanf(&quot;%d&quot;,&amp;fmcols);<br />
printf(&quot;How many rows for b?&quot;);<br />
scanf(&quot;%d&quot;,&amp;smrows);<br />
printf(&quot;How many columns for b?&quot;);<br />
scanf(&quot;%d&quot;,&amp;smcols);<br />
/*allocate initial memory*/<br />
a=(int (*)[MAXCOLS] malloc(fmrows*fmcols*sizeof(int));<br />
b=(int (*)[MAXCOLS] malloc(smrows*smcols*sizeof(int));<br />
c=(int (*)[MAXCOLS] malloc(fmrows*smcols*sizeof(int));<br />
printf(&quot;\n\nFirst matrix:\n&quot;);<br />
readinput(a,fmrows,fmcols);<br />
printf(&quot;\n\nSecond matrix:\n&quot;);<br />
readinput(b,smrows,smcols);<br />
computeprod(a,b,c,fmrows,fmcols,smcols);<br />
printf(&quot;\n\nProduct of the matrices:\n&quot;);<br />
writeoutput(c,fmrows,smcols);<br />
getch();<br />
return(0);<br />
}<br />
 void readinput(int (*a)[MAXCOLS],int m,int n)<br />
{<br />
  int i,j;<br />
 for(i=0;i&lt;m;++i) {<br />
  printf(&quot;\nEnter data for row No.  %2d\n&quot;,i+1);<br />
 for(j=0;j&lt;n;++j)<br />
 scanf(&quot;%d&quot;,&amp;a[i][j]);<br />
}<br />
return;<br />
}<br />
 void computeprod(int (*a)[MAXCOLS],int (*b)[MAXCOLS],int (*c)[MAXCOLS],int m,int n,int p)<br />
{<br />
  int i ,j ,sum;<br />
  for(i=0;i&lt;m;++i)<br />
  for(j=0;j&lt;p;++j)  {<br />
  sum=0;<br />
 for(k=0;k&lt;n;++k)<br />
 sum+=a[i][k]*b[k][j];<br />
 c[i][j]=sum;<br />
}<br />
return;<br />
}<br />
  void writeoutput(int (*c)[MAXCOLS],int m,int p)<br />
{<br />
  int i,j;<br />
  for(i=0;i&lt;m;++i)  {<br />
  for(j=0;j&lt;p;++j)<br />
 printf(&quot;%d\t&quot;, c[i][j]);<br />
printf(&quot;\n&quot;);<br />
}<br />
 return;<br />
}</div>

]]></content:encoded>
			<category domain="http://www.geekinterview.com/talk/c-and-c/">C and C++</category>
			<dc:creator>pichaiah2009</dc:creator>
			<guid isPermaLink="true">http://www.geekinterview.com/talk/16561-a-program-using-pointers.html</guid>
		</item>
		<item>
			<title>C Challenge Problem No #01</title>
			<link>http://www.geekinterview.com/talk/16555-c-challenge-problem-no-01-a.html</link>
			<pubDate>Wed, 18 Nov 2009 00:46:52 GMT</pubDate>
			<description>Q 1 What will be the output of the following program : 
 
 int main() 
 { 
   printf(); 
   return(0); 
 }  
 (a)Run-Time Error 
 (b)Compile-Time...</description>
			<content:encoded><![CDATA[<div>Q 1 What will be the output of the following program :<br />
<br />
 int main()<br />
 {<br />
   printf();<br />
   return(0);<br />
 } <br />
 (a)Run-Time Error<br />
 (b)Compile-Time Error<br />
 (c)No Output<br />
 (d)None of these</div>

]]></content:encoded>
			<category domain="http://www.geekinterview.com/talk/c-and-c/">C and C++</category>
			<dc:creator>aman15490</dc:creator>
			<guid isPermaLink="true">http://www.geekinterview.com/talk/16555-c-challenge-problem-no-01-a.html</guid>
		</item>
		<item>
			<title>Adding our functions in library</title>
			<link>http://www.geekinterview.com/talk/16535-adding-our-functions-in-library.html</link>
			<pubDate>Sun, 15 Nov 2009 02:46:51 GMT</pubDate>
			<description>Please anyone can illustrate the procedure for adding user defined functions  
in the library.</description>
			<content:encoded><![CDATA[<div>Please anyone can illustrate the procedure for adding user defined functions <br />
in the library.</div>

]]></content:encoded>
			<category domain="http://www.geekinterview.com/talk/c-and-c/">C and C++</category>
			<dc:creator>aman15490</dc:creator>
			<guid isPermaLink="true">http://www.geekinterview.com/talk/16535-adding-our-functions-in-library.html</guid>
		</item>
		<item>
			<title>Compiling and Executing Program</title>
			<link>http://www.geekinterview.com/talk/16534-compiling-and-executing-program.html</link>
			<pubDate>Sun, 15 Nov 2009 02:04:19 GMT</pubDate>
			<description>I am using turbo c compiler and i am compiling and executing program directly using alt+F9 and ctrl+F9 . Is there any other way to compile and...</description>
			<content:encoded><![CDATA[<div>I am using turbo c compiler and i am compiling and executing program directly using alt+F9 and ctrl+F9 . Is there any other way to compile and execute c program.</div>

]]></content:encoded>
			<category domain="http://www.geekinterview.com/talk/c-and-c/">C and C++</category>
			<dc:creator>aman15490</dc:creator>
			<guid isPermaLink="true">http://www.geekinterview.com/talk/16534-compiling-and-executing-program.html</guid>
		</item>
		<item>
			<title>Command Line Arguments</title>
			<link>http://www.geekinterview.com/talk/16533-command-line-arguments.html</link>
			<pubDate>Sun, 15 Nov 2009 02:00:29 GMT</pubDate>
			<description>Please anybody can explain me how to use command line arguments in c. 
I am using TURBO C compiler.</description>
			<content:encoded><![CDATA[<div>Please anybody can explain me how to use command line arguments in c.<br />
I am using TURBO C compiler.</div>

]]></content:encoded>
			<category domain="http://www.geekinterview.com/talk/c-and-c/">C and C++</category>
			<dc:creator>aman15490</dc:creator>
			<guid isPermaLink="true">http://www.geekinterview.com/talk/16533-command-line-arguments.html</guid>
		</item>
		<item>
			<title>Advance test In C</title>
			<link>http://www.geekinterview.com/talk/16514-advance-test-in-c.html</link>
			<pubDate>Thu, 12 Nov 2009 05:56:13 GMT</pubDate>
			<description>I am Uploading a Document File that contains Good Questions in c. 
Also give your comments about the post and rate it pleaseeeeeeeee.</description>
			<content:encoded><![CDATA[<div>I am Uploading a Document File that contains Good Questions in c.<br />
Also give your comments about the post and rate it pleaseeeeeeeee.</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.geekinterview.com/talk/images/attach/doc.gif" alt="File Type: doc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.geekinterview.com/talk/attachments/395d1258005217-advance-test-in-c-advanced-test-in-c.doc" target="_blank">Advanced Test in C.doc</a> (120.5 KB)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://www.geekinterview.com/talk/c-and-c/">C and C++</category>
			<dc:creator>aman15490</dc:creator>
			<guid isPermaLink="true">http://www.geekinterview.com/talk/16514-advance-test-in-c.html</guid>
		</item>
	</channel>
</rss>
