<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
   <channel>
    <atom:link href="http://sahaya.webnode.com/rss/all.xml" rel="self" type="application/rss+xml" />
      <title>All articles - sahaya.webnode.com</title>
      <link>http://sahaya.webnode.com/archive/news/</link>
      <description></description>
      <language>en</language>
      <pubDate>Mon, 28 Jul 2008 14:54:00 +0200</pubDate>
      <lastBuildDate>Mon, 28 Jul 2008 14:54:00 +0200</lastBuildDate>
      <category>Tips &amp; Tricks</category>
      <category>C Puzzles Answer</category>
      <category>C Puzzles</category>
      <category>News</category>
      <category>search</category>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs>
      <generator>Rubicus v2.0</generator>
      <managingEditor><![CDATA[npoke2@gmail.com (npoke2@gmail.com)]]></managingEditor>
      <webMaster><![CDATA[npoke2@gmail.com (npoke2@gmail.com)]]></webMaster>
      <item>
         <title>The Reasons behind to return an int from main()</title>
         <link>http://sahaya.webnode.com/news/the-reasons-behind-to-return-an-int-from-main/</link>
         <description><![CDATA[On many operating systems, the value returned by main() is       used to return an exit status to the environment. On Unix,       MS-DOS, and Windows systems, the low eight bits of the       value returned by main() is passed to the command shell or       calling program. This is often used to change the course of       a program, batch file, or shell script.
Many compilers will refuse to compile a source code file       containing a definition of main() which does not return an       int.
On...]]></description>
         <pubDate>Mon, 28 Jul 2008 14:54:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/the-reasons-behind-to-return-an-int-from-main/</guid>
         <category>Tips &amp; Tricks</category>
      </item>
      <item>
         <title>Puzzle 4 Answer</title>
         <link>http://sahaya.webnode.com/news/puzzle-4-answer/</link>
         <description><![CDATA[&#160;
Logic :
                  1. Read Three Numbers,
                  2. Find Out The Difference Between The First Two Numbers
                  3. Add Two Numbers Along With The Difference.
                  4. Divide The Sum By Two, This Will Gives The Bigger Number.
                  5. Now Find The Difference Between The Bigger Number &amp; The Third Number.
                  6. Repeat The Step 3,4.
                  7. Print The Biggest Number.
&#160;
&#160;
#include&lt;stdio.h&gt;...]]></description>
         <pubDate>Mon, 28 Jul 2008 14:19:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/puzzle-4-answer/</guid>
         <category>C Puzzles Answer</category>
      </item>
      <item>
         <title>Puzzle 4</title>
         <link>http://sahaya.webnode.com/news/puzzle-4/</link>
         <description><![CDATA[&#160;
Write a C program to find the Biggest of three integers, without using any of the comparison operators.
&#160;
Puzzle 4 Answer]]></description>
         <pubDate>Mon, 28 Jul 2008 14:18:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/puzzle-4/</guid>
         <category>C Puzzles</category>
      </item>
      <item>
         <title> Puzzle 3 Answer</title>
         <link>http://sahaya.webnode.com/news/c-puzzle-3/</link>
         <description><![CDATA[&#160;
Declared two structure pointers, both should point to Linked List. 
 Travel the Linked List till the lost node using first pointer
 Increment the first pointer by 2 and increment the second pointer by 1.
 When the first pointer reaches the end node, the second pointer pointing the middle element of the list.
  Now   print the data, which is pointed by the second pointer.
 
void find_mid_element(struct Link_List *p)
                {
                  struct Link_List *first,*second;
    ...]]></description>
         <pubDate>Mon, 28 Jul 2008 14:12:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/c-puzzle-3/</guid>
         <category>C Puzzles Answer</category>
      </item>
      <item>
         <title>Puzzle 3</title>
         <link>http://sahaya.webnode.com/news/puzzle-3/</link>
         <description><![CDATA[Given a singly-linked, find out the mid point of a single linked list in a single parse of the list. Assume the program would be loaded in read-only memory, so no manipulation of the list is allowed.
&#160;
&#160;
Puzzle 3 Answer]]></description>
         <pubDate>Mon, 28 Jul 2008 14:05:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/puzzle-3/</guid>
         <category>C Puzzles</category>
      </item>
      <item>
         <title>Puzzle 2 Answer</title>
         <link>http://sahaya.webnode.com/news/puzzle-2-answer/</link>
         <description><![CDATA[&#160;
Here I gave the solution to print up to 50.
if u want to make this program to print  N integers you have to initialize  the array Numbers with 1 to 32767.

&#160;
#include &lt;stdio.h&gt;
#include&lt;string.h&gt;
void main()
             {
                         int Input;
                        char Numbers[ ] =  {"1\n2\n3\n4\n5\n6\n7\n\8\n\9\n10\n11\n12\n13\n
                                                        14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n
                        ...]]></description>
         <pubDate>Fri, 06 Jun 2008 15:48:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/puzzle-2-answer/</guid>
         <category>C Puzzles Answer</category>
      </item>
      <item>
         <title>Puzzle 1 Answer</title>
         <link>http://sahaya.webnode.com/news/puzzle-1/</link>
         <description><![CDATA[if (!printf(“Hello”)) 
          ]]></description>
         <pubDate>Fri, 06 Jun 2008 15:45:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/puzzle-1/</guid>
         <category>C Puzzles Answer</category>
      </item>
      <item>
         <title>Puzzle 2</title>
         <link>http://sahaya.webnode.com/news/puzzle-2/</link>
         <description><![CDATA[&#160;
&#160;
Write a C program that will print 1 to N, one line each, on the screen (stdout) where N is an int variable. " Should not use while, for, do-while loops, goto statement, setjmp (), longjmp (), recursion, if, if-else, assert (), switch (), goto, continue statement and not use N prinf () statment"
For example 
if N =5 then the output should be like
1
2
3
4
5
&#160;
Puzzle 2 Answer
&#160;]]></description>
         <pubDate>Fri, 06 Jun 2008 15:32:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/puzzle-2/</guid>
         <category>C Puzzles</category>
      </item>
      <item>
         <title>Puzzle 1</title>
         <link>http://sahaya.webnode.com/news/a1-whats-the-condition-so-that-the-following-code-snippet-prints-both-helloworld/</link>
         <description><![CDATA[1.What's the "condition" so that the following code snippet prints both HelloWorld !
if "condition"
printf("Hello");
else
printf("World");
Puzzle 1 Answer
&#160;]]></description>
         <pubDate>Fri, 06 Jun 2008 15:24:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/a1-whats-the-condition-so-that-the-following-code-snippet-prints-both-helloworld/</guid>
         <category>C Puzzles</category>
      </item>
      <item>
         <title>Naming the variable is important</title>
         <link>http://sahaya.webnode.com/news/naming-variable-is-important/</link>
         <description><![CDATA[&#160;
We must take special care while naming the variable else it will lead to mystification.
Let us consider the following two code snippets
Code 1:
int main()
{
           int i=3,j=5,k=0;
            k = i*j;
            printf(“area of rectangle = %d”,k);
           return 0;
}
Code 2:
int main()
{
            int base=3,height=5, rect_area=0;
            rect_area = base*height;
            printf(“area of rectangle = %d”,rect_area);
           return 0;
}
&#160;
The above two programs...]]></description>
         <pubDate>Fri, 06 Jun 2008 13:46:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/naming-variable-is-important/</guid>
         <category>Tips &amp; Tricks</category>
      </item>
      <item>
         <title>Don’t forget to initialize variable</title>
         <link>http://sahaya.webnode.com/news/dont-forget-to-initialize-variable/</link>
         <description><![CDATA[&#160;
&#160;
It is a better practice to initialize the variables before using them especially in pointers and in global variable cases. Otherwise this may lead to weird memory errors like memory fault or some capricious errors that are hard to trace.]]></description>
         <pubDate>Fri, 06 Jun 2008 13:27:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/dont-forget-to-initialize-variable/</guid>
         <category>Tips &amp; Tricks</category>
      </item>
      <item>
         <title>First step before start coding</title>
         <link>http://sahaya.webnode.com/news/first-step-before-start-coding/</link>
         <description><![CDATA[&#160;
It is strongly recommended, that always do some paper work to design your solutions for the given problems. This approach will eliminate number of bugs that appear at the initial stage. It indeed plays a vital role when you writing a programme that contains more than 100 lines]]></description>
         <pubDate>Fri, 06 Jun 2008 13:09:00 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/first-step-before-start-coding/</guid>
         <category>Tips &amp; Tricks</category>
      </item>
      <item>
         <title>Website launched</title>
         <link>http://sahaya.webnode.com/news/website-launched/</link>
         <description><![CDATA[Our new website has been launched today.
	Tell your visitors why you have started a new presentation and how it benefits them. Mention your goals and project advantages. Try to briefly give your visitors reasons why they should return to your pages.]]></description>
         <pubDate>Fri, 07 Mar 2008 16:43:41 +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/website-launched/</guid>
         <category>News</category>
      </item>
      <item>
         <title>Visitors notice</title>
         <link>http://sahaya.webnode.com/news/visitors-notice/</link>
         <description><![CDATA[Let your visitors know about news and events on your website as often as possible. You need to keep your website up-to-date so that your visitors will get used to visiting your pages regularly. You can use RSS feeds to deliver new articles directly to your readers.]]></description>
         <pubDate> +0200</pubDate>
         <guid isPermaLink="true">http://sahaya.webnode.com/news/visitors-notice/</guid>
         <category>News</category>
      </item>
   </channel>
</rss>