<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5701811955292850567</id><updated>2024-11-01T12:56:13.351+05:30</updated><category term="Searching and Sorting"/><category term="String functions"/><category term="Date / time functions"/><category term="Elementary Tutorial"/><category term="Series and Numbers"/><category term="Code Request"/><category term="Journals and Publications"/><title type='text'>Sample C Code and Programs</title><subtitle type='html'>Free sample code, example code, programs , code snippet , tutorials in C C++. Find, download and reuse the code database available which vary from small programs to large ones as well. Feel free to request for code that is not in the list.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-1333682825828478181</id><published>2013-08-02T14:30:00.001+05:30</published><updated>2013-08-02T14:30:46.291+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Code Request"/><title type='text'>Request a code</title><summary type="text">Free sample code, example code , code snippet , tutorials in C C++. Find, download and reuse the code database available which varies from small programs to large ones as well. Feel free to request for code that is not in the list. You can post a comment on this post to get the code which is not listed here. I would try to provide you that at the earliest.</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/1333682825828478181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2013/08/request-code.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/1333682825828478181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/1333682825828478181'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2013/08/request-code.html' title='Request a code'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-6550317645978505827</id><published>2013-07-31T12:38:00.001+05:30</published><updated>2013-08-01T23:53:03.540+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="String functions"/><title type='text'>Anagrams : How to find whether two strings are anagrams or not</title><summary type="text">Anagram in c: c program to check whether two strings are anagrams or not, string is assumed to consist of alphabets only. Two words are said to be anagrams of each other if the letters from one word can be rearranged to form the other word. From the above definition it is clear that two strings are anagrams if all characters in both strings occur same number of times. For example &quot;abc&quot; and &quot;cab&quot; </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/6550317645978505827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2013/07/anagrams-how-to-find-whether-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/6550317645978505827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/6550317645978505827'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2013/07/anagrams-how-to-find-whether-two.html' title='Anagrams : How to find whether two strings are anagrams or not'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-5162037041264589989</id><published>2013-07-31T12:03:00.002+05:30</published><updated>2013-07-31T12:10:25.600+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Journals and Publications"/><title type='text'>XML based IVR</title><summary type="text">
The paper presents the architecture of a web based interactive voice response system using Voice XML. The paper includes a discussion on the architecture of the IVR system, its components, and a detailed description of the functionality of VXML Interpreter and its use in IVR systems. It also describes the integration of VXML Interpreter, CCXML Interpreter and the related media &amp; telephony </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/5162037041264589989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2013/07/xml-based-ivr.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/5162037041264589989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/5162037041264589989'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2013/07/xml-based-ivr.html' title='XML based IVR'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-9184347782799156769</id><published>2013-07-24T12:25:00.000+05:30</published><updated>2013-07-24T12:25:02.035+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Series and Numbers"/><title type='text'>Fibonacci series</title><summary type="text">In mathematics, the Fibonacci numbers or Fibonacci series or Fibonacci sequence are the numbers in the following integer sequence:

0,1,1,2,3,5,8,13,21,34,55,89



By definition, the first two numbers in the Fibonacci sequence are 0 and 1, and each subsequent number is the sum of the previous two.



In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/9184347782799156769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2013/07/fibonacci-series.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/9184347782799156769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/9184347782799156769'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2013/07/fibonacci-series.html' title='Fibonacci series'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-1237599197321410415</id><published>2012-10-06T23:50:00.002+05:30</published><updated>2013-08-01T23:55:33.730+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Series and Numbers"/><title type='text'>Composite Numbers </title><summary type="text">The following programs will find if a number is composite or not and will print a series of composite numbers.
A composite number is a positive integer that has a positive divisor other than one or itself. In other words a composite number is any positive integer greater than one that is not a prime number.

So, if n &gt; 0 is an integer and there are integers 1 &lt; a, b &lt; n such that n = a × b, then </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/1237599197321410415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2012/10/composite-numbers.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/1237599197321410415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/1237599197321410415'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2012/10/composite-numbers.html' title='Composite Numbers '/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-8680609598873060410</id><published>2010-10-05T22:17:00.001+05:30</published><updated>2013-08-01T23:58:06.663+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Searching and Sorting"/><title type='text'>Radix Sort: Sample program for Radix Sort</title><summary type="text">This C program will sort a given array using Radix Sort 


#define NUMELTS 100
# include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;conio.h&amp;gt;
#include &amp;lt;math.h&amp;gt;
void radixsort(int a[],int);
void main()
{
	int n,a[20],i;
	clrscr();
 	printf(&quot;enter the number :&quot;);
	scanf(&quot;%d&quot;,&amp;n);
	printf(&quot;ENTER THE DATA -&quot;);
	for(i=0;i&amp;lt;n;i++)
	{
	      printf(&quot;%d.  &quot;,i+1);
	      scanf(&quot;%d&quot;,&amp;a[i]);
   	}
	radixsort(a,</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/8680609598873060410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2010/10/radix-sort-sample-program-for-radix.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/8680609598873060410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/8680609598873060410'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2010/10/radix-sort-sample-program-for-radix.html' title='Radix Sort: Sample program for Radix Sort'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-7304795992370769068</id><published>2010-01-17T13:57:00.001+05:30</published><updated>2013-08-01T23:59:08.533+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Date / time functions"/><title type='text'>Create 2010 Calendar In C</title><summary type="text">This program will make and print a calendar for the year 2010. 


#include &amp;lt;stdio.h&amp;gt;
int IsLeapYear(int Year)
{
    if (Year % 400 == 0 || (Year % 4 == 0 &amp;&amp; Year % 100 != 0))
        return 1;
    return 0;
}
int DaysPassedFromYear(int firstYear, int month,int year)
{
    int days;
    int daysPassed[] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; //per month per year
    </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/7304795992370769068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2010/01/create-2010-calendar-in-c.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/7304795992370769068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/7304795992370769068'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2010/01/create-2010-calendar-in-c.html' title='Create 2010 Calendar In C'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-3572652419950992067</id><published>2009-11-12T22:38:00.005+05:30</published><updated>2010-01-03T03:00:33.624+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Date / time functions"/><title type='text'>Make or print calendar for any year</title><summary type="text">This program will make and print a calendar for any year starting from 1800 AD. However 1800 is not a fixed starting point, you can tweak the code and change firstYear, dayOffset and firstLeapYear to get any starting point. The dayoffset is the first day of our start year which may not be a Sunday ( in 1800 it was Wednesday). The logic goes like that it first calculates the number of days passed </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/3572652419950992067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/11/make-or-print-calendar-for-any-year.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/3572652419950992067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/3572652419950992067'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/11/make-or-print-calendar-for-any-year.html' title='Make or print calendar for any year'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-7386075194534927337</id><published>2009-10-27T19:34:00.003+05:30</published><updated>2009-10-27T19:37:56.817+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Searching and Sorting"/><title type='text'>Bubble Sort : Sample program for bubble sort</title><summary type="text">Bubble sort works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. The algorithm gets its name from the way smaller elements &quot;bubble&quot; to the top of the list.void BubbleSort(int a[], int n){    int i, </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/7386075194534927337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/10/bubble-sort-sample-program-for-bubble.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/7386075194534927337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/7386075194534927337'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/10/bubble-sort-sample-program-for-bubble.html' title='Bubble Sort : Sample program for bubble sort'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-3693817723688176112</id><published>2009-08-25T20:28:00.009+05:30</published><updated>2009-10-27T04:32:31.010+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Searching and Sorting"/><title type='text'>Heap Sort : Sample program for heap sort</title><summary type="text">#include#include/* array of MAXARRAY length ... */#define MAXARRAY 5void heapsort(int ar[], int len);/* heapsort() to bubble down starting at pos[ition] */void heapbubble(int pos, int ar[], int len);int main(void){int array[MAXARRAY];int i = 0;/* load some random values into the array *//* print the original array */printf(&quot;Before heapsort: &quot;);for(i = 0; i &lt; MAXARRAY;i++){printf(&quot; %d &quot;, array[i])</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/3693817723688176112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/08/heap-sort-sample-program-for-heap-sort.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/3693817723688176112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/3693817723688176112'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/08/heap-sort-sample-program-for-heap-sort.html' title='Heap Sort : Sample program for heap sort'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-2016832253381621762</id><published>2009-08-19T01:14:00.010+05:30</published><updated>2009-10-27T04:34:43.325+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Searching and Sorting"/><title type='text'>Binary search : Sample program</title><summary type="text">#include #define TRUE  0#define FALSE 1int main(void) { int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int left = 0; int right = 10; int middle = 0; int number = 0; int bsearch = FALSE; int i = 0; printf(&quot;ARRAY: &quot;); for(i = 1; i &lt;= 10; i++)  printf(&quot;[%d] &quot;, i); printf(&quot;\nSearch for Number: &quot;); scanf(&quot;%d&quot;, &amp;number); while(bsearch == FALSE &amp;&amp; left &lt;= right) {  middle = (left + right) / 2;  if(</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/2016832253381621762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/08/binary-search-sample-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/2016832253381621762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/2016832253381621762'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/08/binary-search-sample-program.html' title='Binary search : Sample program'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-6675190060993746291</id><published>2009-08-10T23:56:00.008+05:30</published><updated>2009-10-27T04:45:48.539+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="String functions"/><title type='text'>Tokenize String : an alternate to strtok</title><summary type="text">This function tokenizes a given string based on white spaces(Blank spaces,new line &amp;amp; tabs) . If you want to tokenize on a particular character like &#39;,&#39; or something else pass the character as c_Delimiter in the function argument. Following test program describes the use of the function.#include &quot;stdio.h&quot;#include &quot;string.h&quot;int TokenizeString(char *s_String, char s_Token[][25], char c_Delimiter</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/6675190060993746291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/08/tokenize-string-alternate-to-strtok.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/6675190060993746291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/6675190060993746291'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/08/tokenize-string-alternate-to-strtok.html' title='Tokenize String : an alternate to strtok'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-644680948417101465</id><published>2009-07-28T23:02:00.001+05:30</published><updated>2009-07-28T23:33:41.048+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Elementary Tutorial"/><title type='text'>Linking in C</title><summary type="text">Computer programs typically comprise several parts or modules; all these parts/modules need not be contained within a single object file, and in such case refer to each other by means of symbols. Typically, an object file can contain three kinds of symbols:defined symbols, which allow it to be called by other modules.Undefined symbols, which call the other modules where these symbols are </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/644680948417101465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/linking-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/644680948417101465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/644680948417101465'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/linking-in-c.html' title='Linking in C'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-856714100540756251</id><published>2009-07-28T22:39:00.004+05:30</published><updated>2009-07-28T22:57:32.242+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Elementary Tutorial"/><title type='text'>Pointer Basics</title><summary type="text"> A pointer references a value stored elsewhere in memory, and obtaining or requesting the value to which a pointer refers is called dereferencing the pointer. The pointer variable doesnt store the value of the variable itself but it points to the memory address where the value is stored.Eg. if we say a is a pointer to b then, a stores the address where the b is located i.e. 1462.  It means value </summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/856714100540756251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/pointer-basics.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/856714100540756251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/856714100540756251'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/pointer-basics.html' title='Pointer Basics'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLRJWWCXmO7V3JT9EdQ4byjSImcFH85lZc-5ebURVF9RAjH3HX8RrQu0g3mNOUrBCF0rVdcE53Y7VBhXfoS_TzwdMfTukhoPeRwZNtCFOrBEIS1Zhn1cxKOrKvD0jsUPubfAIZNCvOSpdJ/s72-c/pointer_1.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-1644972697657986571</id><published>2009-07-28T21:54:00.003+05:30</published><updated>2009-10-27T04:47:13.212+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="String functions"/><title type='text'>strcat</title><summary type="text">//strcat - concatenating of two stringschar * strcat ( char * destination, const char * source ){        char *d = destination;        while (*d) ++d;        while ((*d++ = *source++) != &#39;\0&#39;) ;        return (destination);}</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/1644972697657986571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/strcat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/1644972697657986571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/1644972697657986571'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/strcat.html' title='strcat'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5701811955292850567.post-7832235045983164989</id><published>2009-07-20T20:11:00.005+05:30</published><updated>2009-10-27T04:48:04.676+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="String functions"/><title type='text'>strcmp</title><summary type="text">//comparing s1 and s2; return 0 if strings are equal and number when they are not equalint strcmp(const char *s1, const char *s2){     while (*s1==*s2 )      {           if(*s1==&#39;\0&#39;) return 0;           s1++;s2++;     }     return(*s1-*s2);}</summary><link rel='replies' type='application/atom+xml' href='http://sample-c-codes.blogspot.com/feeds/7832235045983164989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/strcmp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/7832235045983164989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5701811955292850567/posts/default/7832235045983164989'/><link rel='alternate' type='text/html' href='http://sample-c-codes.blogspot.com/2009/07/strcmp.html' title='strcmp'/><author><name>SHARAD KUMAR SINGH</name><uri>http://www.blogger.com/profile/08019856014837580260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>