<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Priyadeep&#039;s Blog</title>
	<atom:link href="http://priyadeep.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://priyadeep.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:14:46 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='priyadeep.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Priyadeep&#039;s Blog</title>
		<link>http://priyadeep.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://priyadeep.wordpress.com/osd.xml" title="Priyadeep&#039;s Blog" />
	<atom:link rel='hub' href='http://priyadeep.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Link list</title>
		<link>http://priyadeep.wordpress.com/2010/07/26/link-list/</link>
		<comments>http://priyadeep.wordpress.com/2010/07/26/link-list/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 16:03:17 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://priyadeep.wordpress.com/?p=43</guid>
		<description><![CDATA[A link list have start pointer and number of nodes &#8211; each have data stored and pointer to next node. must have pointers * Start pointer -&#62; to tell where the list started * next node pointer-&#62; to tell where is next node placed optional pointers ( to increase the efficiency of link list) * [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=43&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A link list have<br />
 start pointer and<br />
 number of nodes &#8211; each have data stored and pointer to next node.</p>
<p>   must have pointers<br />
 * Start pointer -&gt; to tell where the list started<br />
 *  next node pointer-&gt; to tell where is next node placed</p>
<p>optional pointers  ( to increase the efficiency of link list)<br />
  * last pointer -&gt; will point to the last node of link list<br />
 * previous pointer -&gt; will point to previous node .</p>
<p><a href="http://priyadeep.files.wordpress.com/2010/07/link-list2.jpg"><img src="http://priyadeep.files.wordpress.com/2010/07/link-list2.jpg?w=350&#038;h=200" alt="link list" title="LINK LIST" border="2" width="350" height="200" class="alignnone size-full wp-image-56" /></a></p>
<blockquote><p>
<code><b><i><br />
#include<br />
using namespace std;</p>
<p>struct Node{<br />
  int data_;<br />
  Node* next_;<br />
  Node* prev_;<br />
};</p>
<p>class LList{<br />
  Node* start_;<br />
  Node* last_;<br />
public:<br />
  LList();<br />
  void addFront(int v);<br />
  void removeFront();<br />
  void addBack(int v);<br />
  void removeBack();<br />
  void print();<br />
  ~LList();<br />
};</p>
<p>LList::LList(){<br />
  start_=last_=NULL;<br />
}</p>
<p>void LList::removeFront(){<br />
  if(start_){<br />
    Node* rm=start_;<br />
    if(start_==last_){  //only have one node in list<br />
      last_=NULL;<br />
    }<br />
    start_=start_-&gt;next_;<br />
    delete rm;<br />
  }<br />
}<br />
void LList::addFront(int v){<br />
   Node* newnode=new Node;<br />
  newnode-&gt;data_=v;</p>
<p>  if(!start_){<br />
    //link node to empty list<br />
    start_=newnode;<br />
    last_=newnode;<br />
    newnode-&gt;next_=NULL;<br />
  }<br />
  else{<br />
    newnode-&gt;next_=start_;<br />
    start_=newnode;<br />
  }<br />
}<br />
void LList::print(){<br />
   Node* curr=start_;<br />
  for(Node* curr=start_;curr;curr=curr-&gt;next_){<br />
       cout &lt;data_ &lt;next_;<br />
    delete curr;<br />
    curr=nextnode;<br />
  }<br />
}</p>
<p>void LList::addBack(int v){<br />
  Node* nn=new Node;<br />
  nn-&gt;data_=v;<br />
  nn-&gt;next_=NULL;<br />
  if(last_){   //not empty list<br />
    last_-&gt;next_=nn;<br />
  }<br />
  else{<br />
    start_=nn;<br />
  }<br />
  last_=nn;<br />
}<br />
void LList::removeBack(){<br />
  if(start_){<br />
    if(start_!=last_){<br />
      Node* secondlast=start_;<br />
      while(seconlast-&gt;next_!=last){<br />
        secondlast=secondlast-&gt;next_;<br />
      }<br />
      secondlast-&gt;next_=NULL;<br />
      delete last_;<br />
      last_=secondlast;<br />
    }<br />
    else{<br />
      delete last_;<br />
      start_=NULL;<br />
      last_=NULL;<br />
    }<br />
  }<br />
}</p>
<p>void print(int&amp; x){<br />
   cout &lt;&lt; x &lt;&lt; endl;<br />
}<br />
void increase(int&amp; x){<br />
  x=x+1;<br />
}</p>
<p></b></i></code></p>
</blockquote>
<p><ins datetime="2010-07-26T19:06:45+00:00"></ins></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=43&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/07/26/link-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>

		<media:content url="http://priyadeep.files.wordpress.com/2010/07/link-list2.jpg" medium="image">
			<media:title type="html">LINK LIST</media:title>
		</media:content>
	</item>
		<item>
		<title>Bitwise Operators (shifts)</title>
		<link>http://priyadeep.wordpress.com/2010/06/18/bitwise-operators-shifts/</link>
		<comments>http://priyadeep.wordpress.com/2010/06/18/bitwise-operators-shifts/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 00:51:08 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://priyadeep.wordpress.com/?p=38</guid>
		<description><![CDATA[left shift Lets we have A=0000 0100 which is actually &#8217;4&#8242; Now the magic time left shift a by 1 A&#60;&#60;1 = 0000 1000 which is equal to &#039;8&#039; so left shift is multiply by 2 another example :- X= 0001 0000 = &#8217;16&#8242; X&#60;&#60;1 = 0010 0000 =&#039;32&#039; Right shift A&#60;&#60;1 = 0000 0100 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=38&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em><strong>left shift </strong></em></p>
<p>Lets we have A=0000 0100 which is actually &#8217;4&#8242;<br />
Now the magic time<br />
      left shift a by 1<br />
     A&lt;&lt;1<br />
           = 0000 1000 which is equal to &#039;8&#039;<br />
 so left shift is <em><strong>multiply by 2</strong><br />
</em><br />
another example  :- X= 0001 0000 = &#8217;16&#8242;<br />
     X&lt;&lt;1 = 0010 0000 =&#039;32&#039;           </p>
<p>Right shift<br />
          A&lt;&lt;1 = 0000 0100 =&#039;4&#039;<br />
          X&lt;&lt;1= 0001 0000 =&#039;16&#039;</p>
<p> This mean <em><strong>right shift is divide by &#8217;2&#8242;</strong></em></p>
<p> Next time you wanna divide or multiply bits do shifts <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=38&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/06/18/bitwise-operators-shifts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
		<item>
		<title>Command line programming</title>
		<link>http://priyadeep.wordpress.com/2010/06/18/command-line-programming/</link>
		<comments>http://priyadeep.wordpress.com/2010/06/18/command-line-programming/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 00:24:33 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
		
		<guid isPermaLink="false">http://priyadeep.wordpress.com/?p=23</guid>
		<description><![CDATA[Actual main =&#62; int main(int argc, char * argv[]){ int i; for(i=0;i&#60;argc;i++){ printf(&#34;%d- %s\n&#34;, i, argv[i]); } return 0; } Where argc -&#62; number of arguments passed and argv[] -&#62; array of arguments function to find the average of &#8216;n&#8217; numbers double average(int num, &#8230;){ double sum = 0; int i; va_list args; /*To hold [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=23&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Actual main =&gt;<br />
 <strong>int main(int argc, char * argv[]){<br />
 int i;<br />
  for(i=0;i&lt;argc;i++){<br />
    printf(&quot;%d- %s\n&quot;, i, argv[i]);<br />
  }<br />
  return 0;<br />
}</strong></p>
<p>Where<br />
argc -&gt; number of arguments passed and<br />
argv[] -&gt; array of arguments</p>
<p><strong>function to find the average of &#8216;n&#8217; numbers<br />
</strong></p>
<p><strong>double average(int num, &#8230;){<br />
  double sum = 0;<br />
  int i;<br />
  va_list args; /*To hold the arguments*/<br />
  va_start(args, num); /* to give the list of argument that ends with  &#8216;num&#8217; */<br />
  for(i=0;i&lt;num;i++){<br />
    sum += va_arg(args, double);<br />
  }<br />
  va_end(args);<br />
  return sum/num;<br />
}</strong></p>
<p>But the arguments passed are not allowed  zero because it has find the last one to stop looking further<br />
va_list is predefined structure</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=23&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/06/18/command-line-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
		<item>
		<title>Void pointers</title>
		<link>http://priyadeep.wordpress.com/2010/06/07/void-pointers/</link>
		<comments>http://priyadeep.wordpress.com/2010/06/07/void-pointers/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 16:25:58 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
		
		<guid isPermaLink="false">http://priyadeep.wordpress.com/?p=26</guid>
		<description><![CDATA[void * is a pointer that if we have learnt before or with all other type of pointers would not have that value. Anyways it is simple as that this is a variable pointing to a memory address and it does not know what is the type of variable whose address it is pointing to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=26&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>void *</strong><br />
is a pointer that if we have learnt before or with all other type of pointers would not have that value.<br />
Anyways  it is simple as that this is a variable pointing to a memory address and it does not know what is the type of variable whose address it is pointing to &#8230;.<br />
     also called <strong>generic pointer</strong><br />
 It is good for the situations where we need to store different kinds of addresses . </p>
<blockquote><p><code>#include </p>
<p>int main(void) {<br />
  char ans;<br />
  void *p;<br />
  printf("Enter 'i' for int or 'c' for char ? ");<br />
  scanf("%c", &amp;ans);</p>
<p>  printf ("Enter the value : ");<br />
  if (ans == 'i')<br />
    {<br />
     int a;<br />
     scanf("%d",&amp;a);<br />
     *(int *)p = a;<br />
    }<br />
  else<br />
    {<br />
      char c;<br />
      c=getchar();<br />
      scanf("%c",&amp;c);<br />
      *(char *)p=c;<br />
    }</p>
<p>  printf("value is:");<br />
     if(ans=='i')<br />
       {<br />
         int a=*(int *)p;<br />
         printf("int is %d" , a);<br />
       }<br />
     else<br />
      {<br />
        char c=*(char *)p;<br />
        printf("char is %c" ,c);<br />
      }<br />
  return 0;<br />
}<br />
</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=26&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/06/07/void-pointers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
		<item>
		<title>SVN is it secure</title>
		<link>http://priyadeep.wordpress.com/2010/06/07/svn-is-it-secure/</link>
		<comments>http://priyadeep.wordpress.com/2010/06/07/svn-is-it-secure/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 14:30:39 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
		
		<guid isPermaLink="false">http://priyadeep.wordpress.com/?p=21</guid>
		<description><![CDATA[SVN, a new branch in my life. It is so convenient and let you think about your code , no need to care about uploading and downloading. But is it really that good &#8230; a folder siting in middle of your data that has special access to a server and that server has access to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=21&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SVN, a new branch in my life.       It is so convenient and let you think about your code , no need to care about uploading and downloading. But  is it really that good &#8230; a folder siting in middle of your data that has special access to a server and that server has access to your computer &#8230;. never mind to give passwords  or any thing for authentication or security once you have repository there .<br />
    I would really appreciate if any one will try to convince my for it security features..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=21&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/06/07/svn-is-it-secure/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
		<item>
		<title>Instructions for coding by Fardad</title>
		<link>http://priyadeep.wordpress.com/2010/05/26/instructions-for-coding-by-fardad/</link>
		<comments>http://priyadeep.wordpress.com/2010/05/26/instructions-for-coding-by-fardad/#comments</comments>
		<pubDate>Wed, 26 May 2010 02:25:30 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
		
		<guid isPermaLink="false">http://priyadeep.wordpress.com/2010/05/26/instructions-for-coding-by-fardad/</guid>
		<description><![CDATA[* Add ground rule for coding - indentation for three,two or four spaces - starting bracket in end of function name line or in the start of next line. * Single entry point * Single exit point - Only one return statement in a function * No break, continue or goto &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Compiler passes While [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=14&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>* Add ground rule for coding<br />
- indentation for three,two or four spaces<br />
- starting bracket in end of function name line or in the start of next line.</li>
<li>*  Single entry point</li>
<li>*  Single exit point<br />
- Only one return statement in a function</li>
<li>*  No break, continue or goto</li>
</ul>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<b> Compiler passes</b></p>
<p>While compilation c/c++ compiler make at least three passes to program</p>
<ul>
<li>-  First pass is PRE-PROCESSOR<br />
Embed the full code in place of # directives (#include,#define)</li>
<li>- Second pass is compiler<br />
Translate source code to machine language called object file.</li>
<li>- Third pass is linker<br />
Combines object code and extract  code from standard libraries, all external references make executable program .</li>
<ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=14&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/05/26/instructions-for-coding-by-fardad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
		<item>
		<title>COOL things we discuss today(19 th may)</title>
		<link>http://priyadeep.wordpress.com/2010/05/19/cool-things-we-discuss-today19-th-may/</link>
		<comments>http://priyadeep.wordpress.com/2010/05/19/cool-things-we-discuss-today19-th-may/#comments</comments>
		<pubDate>Wed, 19 May 2010 23:29:04 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://priyadeep.wordpress.com/2010/05/19/cool-things-we-discuss-today19-th-may/</guid>
		<description><![CDATA[? : Ternary operator c = a &#62; b ? 100 : 200 ; * Faster then IF statement * Data types for both the values (100 and 200) should be same. &#8212;&#8212;&#8212; a=10; b=20; printf(&#8220;%d %d \n&#8221;, b, b+1); output is -&#62; 21 21 because compiler use stack so first b will go in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=7&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>
     <b>?  : Ternary operator</b></p>
<p>    c = a &gt; b ? 100 : 200 ;</p>
<p>     * Faster then IF statement<br />
     * Data types for both the values (100 and 200) should be same.</p>
<p>&#8212;&#8212;&#8212;</p>
<p>a=10;<br />
b=20;<br />
printf(&#8220;%d  %d \n&#8221;, b, b+1);</p>
<p>output is -&gt; 21   21</p>
<p>      because compiler use stack  so first b will go in then b+1 will go into the stack<br />
      As stack is LIFO<br />
      so it will take b+1 out first  so now b = 21;<br />
      then b<br />
      so the printout is<br />
      21   21<br />
            But it depends purely on the compiler if it uses queue then the answer will be<br />
      20   21</p>
<p>&#8212;&#8212;&#8212;-</p>
<p> printf  returns number of characters successfully printed.<br />
 -1 if it fails to run<br />
&#8212;&#8212;&#8212;-</p>
<p><b> Preprocessor directive </b><br />
#include<br />
# -&gt; pre-processor directive (tells the compiler to do something before compiling .<br />
    include -&gt; brings in contents of file given next to it</p>
<p>define -&gt;search and replace<br />
 #define sum a+b<br />
      will replace the word sum with a+b before compiling</p>
<p>* Define is also used to create macros (macros -&gt; smart search and replace)<br />
     #define SUM(x,y)  ((x)+(y))<br />
* Compiler can be directed to compile or not to compile any part of code</p>
<p>#define  one 1<br />
#define  two 2<br />
#define  comp one</p>
<p>int main()<br />
{<br />
&#8230;<br />
&#8230;<br />
ifdef comp== one<br />
&#8230;<br />
&#8230;<br />
#endif<br />
ifdef comp== two<br />
&#8230;<br />
&#8230;<br />
#endif<br />
#else<br />
&#8230;<br />
&#8230;<br />
#endif<br />
&#8230;<br />
}</p>
<p>Feel free to correct me if you find   anything  wrong  and if you want to add on what we did in class or any thing regarding oop344 </p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=7&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/05/19/cool-things-we-discuss-today19-th-may/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
		<item>
		<title>Tools for OOP344</title>
		<link>http://priyadeep.wordpress.com/2010/05/19/tools-for-oop344/</link>
		<comments>http://priyadeep.wordpress.com/2010/05/19/tools-for-oop344/#comments</comments>
		<pubDate>Wed, 19 May 2010 22:47:02 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://priyadeep.wordpress.com/2010/05/19/tools-for-oop344/</guid>
		<description><![CDATA[Things we need to get OOP344 going * WIKI account -&#62; own page , Team page , entry in student list, entry in team list . * IRS(CHATZILLA) * A Blog * SVN I would like if any one update if we need any thing else&#8230;.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=6&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Things we need to get OOP344 going<br />
* WIKI account -&gt; own page , Team page , entry in student list, entry in team list .<br />
* IRS(CHATZILLA)<br />
* A Blog<br />
* SVN</p>
<p>I would like if any one update if we need any thing else&#8230;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=6&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/05/19/tools-for-oop344/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
		<item>
		<title>start up</title>
		<link>http://priyadeep.wordpress.com/2010/05/15/start-up/</link>
		<comments>http://priyadeep.wordpress.com/2010/05/15/start-up/#comments</comments>
		<pubDate>Sat, 15 May 2010 22:22:00 +0000</pubDate>
		<dc:creator>priyadeep</dc:creator>
				<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://priyadeep.wordpress.com/2010/05/15/start-up/</guid>
		<description><![CDATA[Hi this blog is for school course oop344. I am expecting to discuss about c/c++ project .<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=3&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi this blog is for school course oop344. I am expecting to discuss about c/c++ project .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/priyadeep.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/priyadeep.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/priyadeep.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/priyadeep.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/priyadeep.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/priyadeep.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/priyadeep.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/priyadeep.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/priyadeep.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/priyadeep.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/priyadeep.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/priyadeep.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/priyadeep.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/priyadeep.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=priyadeep.wordpress.com&amp;blog=13696901&amp;post=3&amp;subd=priyadeep&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://priyadeep.wordpress.com/2010/05/15/start-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f321cef414bbd4c5b80e5929b34a302?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">priyadeep</media:title>
		</media:content>
	</item>
	</channel>
</rss>
