<?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-3012383994992801642</id><updated>2026-01-17T14:38:57.556-08:00</updated><category term="C Guide"/><category term="C Puzzles"/><category term="Data Structure Concepts"/><category term="C Questions"/><category term="Data Structure Problems"/><category term="C Programs"/><category term="Data Structure Programs"/><category term="Algorithm Implementation"/><category term="C Simple Projects"/><category term="C Examples"/><category term="c++ program"/><title type='text'>Data Structures and C Programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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>78</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3012383994992801642.post-1969489031040570108</id><published>2014-12-23T05:09:00.000-08:00</published><updated>2014-12-23T05:09:14.642-08:00</updated><title type='text'>functions in c</title><summary type="text">

</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/1969489031040570108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2014/12/functions-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/1969489031040570108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/1969489031040570108'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2014/12/functions-in-c.html' title='functions in c'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-7385350151674800814</id><published>2012-05-02T11:58:00.001-07:00</published><updated>2012-05-02T11:58:29.350-07:00</updated><title type='text'>Introduction to C++</title><summary type="text">
What is c++

C++ is a high level programming language that allows a software engineer to efficiently communicate with a computer. &amp;nbsp;&amp;nbsp;&amp;nbsp;
c++ is a highly flexible and adaptable language used for variety of programs including firmware for micro controllers,operating systems, applications and graphics programming.

Why c++ 

In 1970 , Brian Kernighan and Dennis Ritchie, created C </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/7385350151674800814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2012/05/introduction-to-c.html#comment-form' title='36 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/7385350151674800814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/7385350151674800814'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2012/05/introduction-to-c.html' title='Introduction to C++'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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>36</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012383994992801642.post-549444171076399257</id><published>2011-06-15T15:38:00.000-07:00</published><updated>2011-06-15T15:40:39.294-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithm Implementation"/><category scheme="http://www.blogger.com/atom/ns#" term="C Simple Projects"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure Programs"/><title type='text'>C program for Evaluating a Postfix Expression</title><summary type="text">The Algorithm for Evaluating a Postfix Expression&amp;nbsp; is given here

Program: 


&lt;!--
pre { font-family: monospace; color: #000000; background-color: #ffffff; }
body { font-family: monospace; color: #000000; background-color: #ffffff; }
.Comment { color: #0000ff; }
.Special { color: #6a5acd; }
.Statement { color: #a52a2a; font-weight: bold; }
.Type { color: #2e8b57; font-weight: bold; }
.</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/549444171076399257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/06/c-program-for-evaluating-postfix.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/549444171076399257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/549444171076399257'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/06/c-program-for-evaluating-postfix.html' title='C program for Evaluating a Postfix Expression'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-1161337324837756716</id><published>2011-03-16T13:38:00.000-07:00</published><updated>2011-03-16T23:31:09.356-07:00</updated><title type='text'>C program for converting Infix expression to postfix expression</title><summary type="text">The Algorithm for converting Infix expression to postfix expression is given here

Program:

#include&amp;lt;stdio.h&amp;gt;
#define SIZE 40
char&amp;nbsp;stack[SIZE];
int&amp;nbsp;top=-1;

void&amp;nbsp;push(char&amp;nbsp;data)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(top==SIZE-1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf(&quot;Stack is full\n&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/1161337324837756716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/03/c-program-for-converting-infix.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/1161337324837756716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/1161337324837756716'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/03/c-program-for-converting-infix.html' title='C program for converting Infix expression to postfix expression'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012383994992801642.post-8084416922679087254</id><published>2011-01-26T12:46:00.000-08:00</published><updated>2011-01-26T12:46:51.962-08:00</updated><title type='text'>Daily 5 C programs-2</title><summary type="text">Write a program to print the number of characters entered?Count the Input characters
solution:#include&amp;lt;stdio.h&amp;gt;
int&amp;nbsp;main()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int&amp;nbsp;x=0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(getchar()!=EOF)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;++x;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf(&quot;\nNumber of characters X=%d\n&quot;,x);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;0;
}Output:
hello world</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/8084416922679087254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/daily-5-c-programs-2.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/8084416922679087254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/8084416922679087254'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/daily-5-c-programs-2.html' title='Daily 5 C programs-2'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-8921567001649176476</id><published>2011-01-19T12:11:00.000-08:00</published><updated>2011-01-20T09:10:22.392-08:00</updated><title type='text'>EOF[End Of File]</title><summary type="text">End of file[EOF] is a condition in computer operating system where no more data can be read from a data source(file or stream).
EOF is actually a macro defined as an integer with a negative value(normally -1). 
 EOF is normally returned by functions that  perform read operations to denote either an error or end of input. It is important  to ensure you use an integer to store the return code from </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/8921567001649176476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/eofend-of-file.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/8921567001649176476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/8921567001649176476'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/eofend-of-file.html' title='EOF[End Of File]'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-7461307639118936361</id><published>2011-01-19T11:39:00.000-08:00</published><updated>2011-01-20T23:12:12.277-08:00</updated><title type='text'>Daily 5 C programs-1</title><summary type="text">Write a program to print the value of EOF.?
Solution:/*************Program1***********/
#include&amp;lt;stdio.h&amp;gt;
int&amp;nbsp;main()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; int&amp;nbsp;ch=getchar();
 &amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,ch);
&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
}
---------------------------------------
/*************Program2***********/
#include&amp;lt;stdio.h&amp;gt;
int&amp;nbsp;main()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,EOF);
&amp;nbsp;&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/7461307639118936361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/daily-5-c-programs-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/7461307639118936361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/7461307639118936361'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/daily-5-c-programs-1.html' title='Daily 5 C programs-1'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-3292417971820651599</id><published>2011-01-18T12:36:00.000-08:00</published><updated>2011-01-18T12:38:28.954-08:00</updated><title type='text'>Some questions about Arrays with answers</title><summary type="text">How will you define an array?
Storage class datatype  array_name[size of array]
Example:static int sum[8];
auto float fun[20]; (or) float fun[20];

Is it necessary to specify the storage class in array definition? what is the default storage class for arrays?
Answer:
Storage class is optional. If the array is defined with in a function or a block the default storage class is auto. If the array is</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/3292417971820651599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/silly-questions-about-arrays-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3292417971820651599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3292417971820651599'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2011/01/silly-questions-about-arrays-with.html' title='Some questions about Arrays with answers'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-327246912301401609</id><published>2010-12-19T05:44:00.000-08:00</published><updated>2010-12-19T10:44:31.208-08:00</updated><title type='text'>Multifile Program in C</title><summary type="text">1.What is a Multifile program?If a program contains many functions then it is difficult to read and maintain because when the number of functions increases the size of the program/file will also increase. To avoid this some functions can be written in separate file&amp;nbsp;
The individual files will be compiled separetely and then linked together to form one executable object program.
This will help</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/327246912301401609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/multifile-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/327246912301401609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/327246912301401609'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/multifile-program.html' title='Multifile Program in C'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-2157139504263738329</id><published>2010-12-12T11:18:00.000-08:00</published><updated>2010-12-19T02:09:18.084-08:00</updated><title type='text'>Static Variables in C</title><summary type="text">Static variable use the keyword static.
In a single file program static variable is similar to auto variables.
Like auto variables, static variables are also local to the block in which they are declared.It cannot be accessed outside of their defining function.
The difference between auto and static variable is that static variables dont disappear when the function is no longer active. their </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/2157139504263738329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/static-variables-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2157139504263738329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2157139504263738329'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/static-variables-in-c.html' title='Static Variables in C'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-3920329223255943766</id><published>2010-12-09T11:30:00.000-08:00</published><updated>2011-01-18T12:39:20.048-08:00</updated><title type='text'>Some Questions about Arrays</title><summary type="text">How will you define an array?
Is it necessary to specify the storage class in array definition? what is the default storage class for arrays?
If the array elements are not initialized then what is the default initial value?for example: int x[5]; what is the value of x[1]? 
Consider we have a 10 element array what happen if we try to access the 12th element?
Can I declare the array without </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/3920329223255943766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/some-questions-about-arrays.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3920329223255943766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3920329223255943766'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/some-questions-about-arrays.html' title='Some Questions about Arrays'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-2959531497865791841</id><published>2010-12-02T12:24:00.000-08:00</published><updated>2010-12-02T12:38:43.718-08:00</updated><title type='text'>Storage Classes in C(Extern)</title><summary type="text">External Variables (or) Global Variables 
The scope of a external variables remains from the point of the definition through the remainder of the program.
 External variables are recognized globally, that can be accessed from any function&amp;nbsp;
Using external variables we can transfer information in to a function without using arguments.
The key word for external variable is extern.
 
External </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/2959531497865791841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/storage-classes-in-cextern.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2959531497865791841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2959531497865791841'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/12/storage-classes-in-cextern.html' title='Storage Classes in C(Extern)'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-2616959504890754366</id><published>2010-11-21T09:07:00.000-08:00</published><updated>2010-12-01T22:28:03.499-08:00</updated><title type='text'>C programs</title><summary type="text">Write a c program to get the system time and date?
Solution:
#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;time.h&amp;gt;
int&amp;nbsp;main()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;char&amp;nbsp;*date;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;time_t&amp;nbsp;timer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;timer=time(NULL);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;date=asctime(localtime(&amp;amp;timer));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf(&quot;date:%s&quot;,date);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;
}
</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/2616959504890754366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/11/c-program-to-get-system-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2616959504890754366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2616959504890754366'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/11/c-program-to-get-system-time.html' title='C programs'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-4673179702289610678</id><published>2010-10-21T13:38:00.000-07:00</published><updated>2012-10-03T03:26:21.663-07:00</updated><title type='text'>Storage Classes in C</title><summary type="text">
What is a Local Variable?

 Local variable is&amp;nbsp; a variable which is recognized only with in a single function.
Normally local variables does not retain its value once control has been transferrd out of the function.

What is a global variable?

Global variaables can be recognized in two or more functions.
Global variables retain its value until the program terminated.

Storage Classes:

</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/4673179702289610678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/10/storage-classes-in-c.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/4673179702289610678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/4673179702289610678'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/10/storage-classes-in-c.html' title='Storage Classes in C'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-1511059583600475796</id><published>2010-09-21T13:15:00.000-07:00</published><updated>2010-10-02T10:57:38.883-07:00</updated><title type='text'>Questions on Data Input and Output</title><summary type="text">What are the commonly used input and output functions in c? How are they accessed?Solution 


* C has 6 popular data input and output library functions. They are getchar, putchar, printf, scanf, gets and puts.
* These functions handle data transfer between computer and the input/output device (keyboard,monitor)
* The functions getchar and putchar allow single characters to be transferred into and</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/1511059583600475796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/09/questions-on-data-input-and-output.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/1511059583600475796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/1511059583600475796'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/09/questions-on-data-input-and-output.html' title='Questions on Data Input and Output'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-3970768386475616734</id><published>2010-09-07T14:08:00.000-07:00</published><updated>2010-09-07T14:10:09.429-07:00</updated><title type='text'>Data Input and Output-III</title><summary type="text">Little More about printfFlags in printf function:We can place flags in the printf statement with in the control string which will affect the appearance of the output.The flag must be placed immediately after the percent sign(%).Two or flags can be combined for a single output. Table shows the commonly used flags FlagMeaning-Data item is left justified(ie)Blanks added after the data item+A sign(+(</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/3970768386475616734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/09/data-input-and-output-iii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3970768386475616734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3970768386475616734'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/09/data-input-and-output-iii.html' title='Data Input and Output-III'/><author><name>Unknown</name><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-3012383994992801642.post-7400884457627430091</id><published>2010-08-31T14:08:00.000-07:00</published><updated>2010-08-31T14:09:24.590-07:00</updated><title type='text'>Data Input and Output-II</title><summary type="text">4.Printf functionPrintf function prints data from the computers memory to the standard output device.Syntax:printf(&quot;%converion character&quot;,Argument list);Argument-&amp;gt;It can be constants,single variable, array names (or) complex expressions Example:#include&amp;lt;stdio.h&amp;gt;int&amp;nbsp;main(){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int&amp;nbsp;i=10,j=20;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;char&amp;nbsp;text[20];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/7400884457627430091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/08/data-input-and-output-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/7400884457627430091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/7400884457627430091'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/08/data-input-and-output-ii.html' title='Data Input and Output-II'/><author><name>Unknown</name><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-3012383994992801642.post-841718944303051188</id><published>2010-08-13T03:18:00.000-07:00</published><updated>2010-08-13T03:18:33.727-07:00</updated><title type='text'>Data Input and Output-I</title><summary type="text">C has 6 popular data input and output library functions. They are getchar, putchar, printf, scanf, gets and puts.
These functions handle data transfer between computer and the input/output device (keyboard,monitor)
 The functions getchar and putchar allow single characters to be transferred into and out of the computer.
The functions printf and scanf allow the transfer of single characters, </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/841718944303051188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/08/data-input-and-output-i.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/841718944303051188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/841718944303051188'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/08/data-input-and-output-i.html' title='Data Input and Output-I'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-2240774947745286572</id><published>2010-07-31T10:57:00.000-07:00</published><updated>2010-07-31T10:59:29.446-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Questions"/><title type='text'>Questions on Functions</title><summary type="text">Difference between pass by value and pass by reference? 
Can you write function similar to printf()?
How can called function determine number of arguments that have been passed to it?
What is the purpose of main() function? 
What are the advantages of functions?
Define function and built-in function?
Can the sizeof operator used to tell the size of an array passed to a function?
Is it possible to</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/2240774947745286572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/07/questions-on-functions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2240774947745286572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2240774947745286572'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/07/questions-on-functions.html' title='Questions on Functions'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-743188275921556092</id><published>2010-07-30T10:58:00.000-07:00</published><updated>2010-07-30T11:07:00.899-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Simple Projects"/><title type='text'>Airline Reservation System in C</title><summary type="text">
DescriptionDevelop a software using C for the case given below.


Write a program to assign  seats on each fligh of the airlines only place ( capacity : 20 seats ).  Your program should display the following menu alternatives.

Please  type 1 for business class
please type 2 for economy class

If  person types 1, the program should assign a seat in business class (  seat 1 to 5). if the person </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/743188275921556092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/07/airline-reservation-system-in-c.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/743188275921556092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/743188275921556092'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/07/airline-reservation-system-in-c.html' title='Airline Reservation System in C'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012383994992801642.post-2889666771145899180</id><published>2010-06-21T17:52:00.000-07:00</published><updated>2010-07-30T11:17:13.634-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Guide"/><title type='text'>String</title><summary type="text">String:
 Strings are character array.
Character array are stored in contiguous memory location. 
String Constant:
A string constant is a one-Dimensional array of characters terminated by a null character(&#39;\0&#39;).
Each character in the array occupies one byte of memory and the last character is always &#39;\0&#39; 
Example:
&amp;nbsp;&amp;nbsp;&amp;nbsp; char str[]={&#39;C&#39;,&#39;P&#39;,&#39;U&#39;,&#39;\0&#39;};
The terminating null character(&#39;\0</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/2889666771145899180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/06/string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2889666771145899180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2889666771145899180'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/06/string.html' title='String'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-2221122799772102753</id><published>2010-06-01T16:12:00.001-07:00</published><updated>2010-07-30T11:17:49.175-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Questions"/><title type='text'>Interview Questions</title><summary type="text">1.  Difference between arrays and pointers?
2. What is the purpose of realloc( )?
3. What is static memory allocation and dynamic memory allocation?
4. How are pointer variables initialized?
5. Are pointers integers?
6. What is a pointer variable?
7. What is a pointer value and address?
8. What is a method?
9. What are the advantages of the functions?
10. What is the purpose of main( ) function?
</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/2221122799772102753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/06/interview-questions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2221122799772102753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2221122799772102753'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/06/interview-questions.html' title='Interview Questions'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-157594275115733529</id><published>2010-05-29T15:07:00.000-07:00</published><updated>2010-07-30T11:17:13.635-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Guide"/><title type='text'>Pointers In C</title><summary type="text"> Pointers:
&amp;nbsp; &amp;nbsp;&amp;nbsp; Pointer is a variable contain the address of another variable. If a variable contains address of another  variable than it is said that first variable points to second. All operation  perform on pointers are done through two operators &#39;*&#39; and  &#39;&amp;amp;&#39;. &#39;&amp;amp;&#39; is a unary operator that returns a memory  address of a variable. &#39;*&#39; is complement of &#39;&amp;amp;&#39; and return </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/157594275115733529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/05/pointers-pointer-is-variable-contain.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/157594275115733529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/157594275115733529'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/05/pointers-pointer-is-variable-contain.html' title='Pointers In C'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012383994992801642.post-2909805420112285584</id><published>2010-05-23T05:53:00.000-07:00</published><updated>2010-07-30T11:17:13.635-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Guide"/><title type='text'>Assertion in C</title><summary type="text">An assertion is a &#39;conditional check&#39; placed in a program to indicate that the developer thinks that the condtion has to be always true, at that place, for the program to work properly after that point. If the condition happens to be false, the program execution would be abruptly abhorted.

For example:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;assert (y!=0); /*&amp;nbsp;The developer thinks that y shouldn&#39;t be equal</summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/2909805420112285584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/05/assert-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2909805420112285584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/2909805420112285584'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/05/assert-function.html' title='Assertion in C'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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-3012383994992801642.post-3177295399904267457</id><published>2010-05-20T13:14:00.000-07:00</published><updated>2012-05-11T07:58:48.172-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Questions"/><title type='text'>Questions on Command Line Arguments</title><summary type="text">

What is command line argument? 
Are variables argc and argv are local to main?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to function?
Is there any way to expand any wildcard characters present in the commandl ine arguments? If yes state that?
What is the maximum length of command line arguments including space </summary><link rel='replies' type='application/atom+xml' href='http://datastructuresprogramming.blogspot.com/feeds/3177295399904267457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/05/questions-on-command-line-arguments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3177295399904267457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012383994992801642/posts/default/3177295399904267457'/><link rel='alternate' type='text/html' href='http://datastructuresprogramming.blogspot.com/2010/05/questions-on-command-line-arguments.html' title='Questions on Command Line Arguments'/><author><name>Suni</name><uri>http://www.blogger.com/profile/03913750430133539687</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>