<?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: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-7033938477432586004</id><updated>2012-02-16T22:56:33.095+05:30</updated><category term='Dynamic Memory Allocation'/><category term='Structures'/><category term='Sorting'/><category term='Queue'/><category term='String and Pointers'/><category term='Graph'/><category term='Programming Lab'/><category term='Call By Reference'/><category term='Introductory Programs'/><category term='Array'/><category term='File Operations'/><category term='Pointer to Structure'/><category term='Tree'/><category term='Data Structure and Algorithm Lab'/><category term='Arrays and Pointers'/><category term='Linked List'/><category term='Pointers'/><category term='Problems'/><category term='Stack'/><category term='Miscellaneous Operations'/><category term='Call By Value'/><category term='Tutorial'/><category term='Site Map'/><category term='Matrix'/><title type='text'>Programming in C</title><subtitle type='html'>Programs in c language.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default?start-index=101&amp;max-results=100'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>112</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7420216780434622249</id><published>2010-04-02T00:56:00.000+05:30</published><updated>2010-04-02T00:56:20.725+05:30</updated><title type='text'>c-pgms.blogspot.com Moved</title><summary type='text'>hi all,
This blog has moved to a better place http://thecodecracker.com.
Don't forgot to comment about the new look and changes.</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7420216780434622249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7420216780434622249&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7420216780434622249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7420216780434622249'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2010/04/c-pgmsblogspotcom-moved.html' title='c-pgms.blogspot.com Moved'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6647365417358768661</id><published>2010-03-07T00:09:00.000+05:30</published><updated>2010-03-07T00:09:43.497+05:30</updated><title type='text'>Decimal to Binary Without using Array</title><summary type='text'>#include&lt;stdio.h&gt;

int main()
{
   int dec,i=1,rem,res=0;
   printf("Enter the Value ");
   scanf("%d",&amp;dec);
   while(dec!=0)
    {
             
        res=res+(i * (rem=dec%2));
 dec=dec/2;
        i=i*10;

    }
printf("\nThe Binary value is %d\n",res);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6647365417358768661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6647365417358768661&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6647365417358768661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6647365417358768661'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2010/03/decimal-to-binary-without-using-array.html' title='Decimal to Binary Without using Array'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-634654111016774407</id><published>2009-11-15T18:33:00.002+05:30</published><updated>2009-11-15T18:33:43.167+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>path matrix by Warshall's algorithm</title><summary type='text'>/* Program to find path matrix by Warshall's algorithm */
#include&lt;stdio.h&gt;
#define MAX 20
main()
{
 int i,j,k,n;
 int w_adj[MAX][MAX],adj[MAX][MAX],path[MAX][MAX];

 printf("Enter number of vertices : ");
 scanf("%d",&amp;n);

 printf("Enter weighted adjacency matrix :\n");
 for(i=0;i&lt;n;i++)
    for(j=0;j&lt;n;j++)
  scanf("%d",&amp;w_adj[i][j]);

 printf("The weighted adjacency matrix is :\n");
 display(</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/634654111016774407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=634654111016774407&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/634654111016774407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/634654111016774407'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/path-matrix-by-warshalls-algorithm.html' title='path matrix by Warshall&apos;s algorithm'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-318931659041387243</id><published>2009-11-15T18:32:00.003+05:30</published><updated>2009-11-15T18:32:59.083+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>traversing a graph through BFS and DFS</title><summary type='text'>/* Program for traversing a graph through BFS and DFS */
#include&lt;stdio.h&gt;
#define MAX 20

typedef enum boolean{false,true} bool;
int adj[MAX][MAX];
bool visited[MAX];
int n;    /* Denotes number of nodes in the graph */
main()
{
 int i,v,choice;

 create_graph();
 while(1)
 {
  printf("\n");
  printf("1. Adjacency matrix\n");
  printf("2. Depth First Search using stack\n");
  printf("3. Depth </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/318931659041387243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=318931659041387243&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/318931659041387243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/318931659041387243'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/traversing-graph-through-bfs-and-dfs.html' title='traversing a graph through BFS and DFS'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1438106942658877815</id><published>2009-11-15T18:32:00.000+05:30</published><updated>2009-11-15T18:32:02.046+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sorting'/><title type='text'>program for topological sorting</title><summary type='text'>/* Program for topological sorting */
#include&lt;stdio.h&gt;
#define MAX 20

int n,adj[MAX][MAX];
int front=-1,rear=-1,queue[MAX];

main()
{
 int i,j=0,k;
 int topsort[MAX],indeg[MAX];

 create_graph();
 printf("The adjacency matrix is :\n");
 display();
 /*Find the indegree of each node*/
 for(i=1;i&lt;=n;i++)
 {
  indeg[i]=indegree(i);
  if( indeg[i]==0 )
   insert_queue(i);
 }

 while(front&lt;=rear) /*</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1438106942658877815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1438106942658877815&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1438106942658877815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1438106942658877815'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-for-topological-sorting.html' title='program for topological sorting'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2394836704106537138</id><published>2009-11-15T18:26:00.000+05:30</published><updated>2009-11-15T18:26:23.197+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tree'/><title type='text'>minimum spanning tree from Prim's algorithm</title><summary type='text'>/* Program for creating minimum spanning tree from Prim's algorithm */
#include&lt;stdio.h&gt;

#define MAX 10
#define TEMP 0
#define PERM 1
#define FALSE 0
#define TRUE 1
#define infinity 9999

struct node
{
 int predecessor;
 int dist; /*Distance from predecessor */
 int status;
};

struct edge
{
 int u;
 int v;
};

int adj[MAX][MAX];
int n;

main()
{
 int i,j;
 int path[MAX];
 int wt_tree,count;
 </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2394836704106537138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2394836704106537138&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2394836704106537138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2394836704106537138'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/minimum-spanning-tree-from-prims.html' title='minimum spanning tree from Prim&apos;s algorithm'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6289664125674667661</id><published>2009-11-15T18:25:00.002+05:30</published><updated>2009-11-15T18:25:31.198+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>path matrix by powers of adjacency matrix</title><summary type='text'>/* Program to find out the path matrix by powers of adjacency matrix */
#include&lt;stdio.h&gt;
#define MAX 20

int n;
main()
{

 int w_adj[MAX][MAX],adj[MAX][MAX],adjp[MAX][MAX];
 int x[MAX][MAX],path[20][20],i,j,p;

 printf("Input number of vertices : ");
 scanf("%d",&amp;n);

 printf("Enter the weighted adjacent matrix :\n");
 for(i=0;i&lt;n;i++)
    for(j=0;j&lt;n;j++)
  scanf("%d",&amp;w_adj[i][j]);
 printf("</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6289664125674667661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6289664125674667661&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6289664125674667661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6289664125674667661'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/path-matrix-by-powers-of-adjacency.html' title='path matrix by powers of adjacency matrix'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5136361132739750351</id><published>2009-11-15T18:24:00.002+05:30</published><updated>2009-11-15T18:24:43.653+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>Warshall's algorithm to find shoretst path matrix</title><summary type='text'>/*Program for Modified Warshall's algorithm to find shoretst path matrix */

#include&lt;stdio.h&gt;
#define infinity 9999
#define MAX 20

main()
{
 int i,j,k,n;
 int adj[MAX][MAX],path[MAX][MAX];

 printf("Enter number of vertices : ");
 scanf("%d",&amp;n);

 printf("Enter weighted matrix :\n");
 for(i=0;i&lt;n;i++)
    for(j=0;j&lt;n;j++)
  scanf("%d",&amp;adj[i][j]);

 printf("Weighted matrix is :\n");
 display(</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5136361132739750351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5136361132739750351&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5136361132739750351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5136361132739750351'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/warshalls-algorithm-to-find-shoretst.html' title='Warshall&apos;s algorithm to find shoretst path matrix'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6921916731626721390</id><published>2009-11-15T18:23:00.002+05:30</published><updated>2009-11-15T18:23:51.451+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>insertion and deletion of nodes and edges in a graph using adjacency list</title><summary type='text'>/* Program for insertion and deletion of nodes and edges in a graph using adjacency list */
#include&lt;stdio.h&gt;
struct edge;
struct node
{
 struct node *next;
 char name;
 struct edge *adj;
}*start=NULL;

struct edge
{
 char dest;
 struct edge *link;
};
struct node *find(char item);

main()
{
 int choice;
 char node,origin,destin;
 while(1)
 {
  printf("1.Insert a node\n");
  printf("2.Insert an </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6921916731626721390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6921916731626721390&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6921916731626721390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6921916731626721390'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/insertion-and-deletion-of-nodes-and.html' title='insertion and deletion of nodes and edges in a graph using adjacency list'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-702987249512307985</id><published>2009-11-15T18:15:00.002+05:30</published><updated>2009-11-15T18:15:53.367+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>minimum spanning tree from Kruskal's algorithm</title><summary type='text'>/* Program for creating a minimum spanning tree from Kruskal's algorithm */
#include&lt;stdio.h&gt;
#define MAX 20

struct edge
{
 int u;
 int v;
 int weight;
 struct edge *link;
}*front = NULL;

int father[MAX]; /*Holds father of each node */
struct edge tree[MAX]; /* Will contain the edges of spanning tree */
int n;   /*Denotes total number of nodes in the graph */
int wt_tree=0; /*Weight of the </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/702987249512307985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=702987249512307985&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/702987249512307985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/702987249512307985'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/minimum-spanning-tree-from-kruskals.html' title='minimum spanning tree from Kruskal&apos;s algorithm'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2020078548869665935</id><published>2009-11-15T18:14:00.001+05:30</published><updated>2009-11-15T18:14:28.571+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>shortest path between two node in graph using Djikstra algorithm</title><summary type='text'>/* Program of shortest path between two node in graph using Djikstra algorithm */

#include&lt;stdio.h&gt;

#define MAX 10
#define TEMP 0
#define PERM 1
#define infinity 9999

struct node
{
int predecessor;
int dist; /*minimum distance of node from source*/
int status;
};

int adj[MAX][MAX];
int n;
void main()
{
int i,j;
int source,dest;
int path[MAX];
int shortdist,count;

create_graph();
printf("The </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2020078548869665935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2020078548869665935&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2020078548869665935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2020078548869665935'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/hortest-path-between-two-node-in-graph.html' title='shortest path between two node in graph using Djikstra algorithm'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8042414508375949228</id><published>2009-11-15T18:12:00.000+05:30</published><updated>2009-11-15T18:12:32.799+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>Program for creation of adjacency matrix</title><summary type='text'>#include&lt;stdio.h&gt;
#define max 20

int adj[max][max]; /*Adjacency matrix */
int n;    /* Denotes number of nodes in the graph */
main()
{
 int max_edges,i,j,origin,destin;
 char graph_type;

 printf("Enter number of nodes : ");
 scanf("%d",&amp;n);
 printf("Enter type of graph, directed or undirected (d/u) : ");
 fflush(stdin);
 scanf("%c",&amp;graph_type);

 if(graph_type=='u')
  max_edges=n*(n-1)/2;
 </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8042414508375949228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8042414508375949228&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8042414508375949228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8042414508375949228'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-for-creation-of-adjacency.html' title='Program for creation of adjacency matrix'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1455461874874342145</id><published>2009-11-15T18:11:00.001+05:30</published><updated>2009-11-15T18:12:49.330+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='Graph'/><title type='text'>addition and deletion of nodes and edges in a graph</title><summary type='text'>/* Program for addition and deletion of nodes and edges in a graph
using adjacency matrix */

#include&lt;stdio.h&gt;
#define max 20
int adj[max][max];
int n;
main()
{
int choice;
int node,origin,destin;

create_graph();
while(1)
{
printf("1.Insert a node\n");
printf("2.Insert an edge\n");
printf("3.Delete a node\n");
printf("4.Delete an edge\n");
printf("5.Dispaly\n");
printf("6.Exit\n");
printf("</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1455461874874342145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1455461874874342145&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1455461874874342145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1455461874874342145'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/addition-and-deletion-of-nodes-and.html' title='addition and deletion of nodes and edges in a graph'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4697695307345324481</id><published>2009-11-15T18:08:00.000+05:30</published><updated>2009-11-15T18:08:14.401+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointer to Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Structures'/><title type='text'>Grade of Students</title><summary type='text'>/*Program to accept name , class  and marks with the use of structure with pointer. Also print the grade which is based on the marks-
1. marks &gt; = 75 grade-A
2. marks &gt;=50 and &lt; 75 grade-B
3. marks &lt; 50 grade-C
*/

#include&lt;stdio.h&gt;

main ( )
{
struct {
   char name[20];
   int class;
  int marks;
              }*ptr;
 printf ( "Name:" );
 scanf ( " %s", ptr-&gt;name );
 printf ( "Class:" );
 scanf </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4697695307345324481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4697695307345324481&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4697695307345324481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4697695307345324481'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/grade-of-students.html' title='Grade of Students'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3238135052835851125</id><published>2009-11-15T18:06:00.000+05:30</published><updated>2009-11-15T18:06:50.742+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointer to Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Structures'/><title type='text'>Program to accept name , class  and marks of 10 students with the use of structure with array of pointer and also print them</title><summary type='text'>#include&lt;stdio.h&gt;

main ( )
{
 struct {
  char name[20];
   int class;
  int marks;
   }*rec[10];
 int i;
 for ( i=0;i&lt; 10;i++ )
 {
  printf ( "Name:" );
  scanf ( " %s", rec[i]-&gt;name );
  printf ( "Class:" );
  scanf ( " %d", &amp;rec[i]-&gt;class );
  printf ( " Marks:" );
  scanf ( " %d", &amp;rec[i]-&gt;marks );
 }
 printf ( "Name\tClass\tMarks\n" );
 for ( i=0 ; i&lt;10 ;i++ )
 {
  printf ( " %s\t" , rec[i]-</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3238135052835851125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3238135052835851125&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3238135052835851125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3238135052835851125'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-accept-name-class-and-marks.html' title='Program to accept name , class  and marks of 10 students with the use of structure with array of pointer and also print them'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8923327163901386077</id><published>2009-11-15T18:04:00.000+05:30</published><updated>2009-11-15T18:04:45.466+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Structures'/><title type='text'>program to use a pointer as a member of structure and print the value of members without use of arrow operator</title><summary type='text'>#include

main ( )
{
 struct rec{
    char *name;
    int *age;
    int *sal;
 }data;
 char name1[20] = "B.N.S. Srivastava";
 int age1=23;
 int sal1=17000;
 strcpy(data.name , "B.N.S.Srivastava");
 data.age=&amp;age1;
 data.sal=&amp;sal1;
 printf ( "Name:%s\n" , data.name );
 printf ( "Age:%d\n" , *data.age );
 printf ( "Salary:%d\n" , *data.sal );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8923327163901386077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8923327163901386077&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8923327163901386077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8923327163901386077'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-use-pointer-as-member-of_15.html' title='program to use a pointer as a member of structure and print the value of members without use of arrow operator'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2675776376532815543</id><published>2009-11-15T18:03:00.000+05:30</published><updated>2009-11-15T18:08:44.618+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointer to Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Structures'/><title type='text'>program to use a pointer as a member of structure and print the value of members</title><summary type='text'>#include&lt;stdio.h&gt;
main( )
{
 struct rec{
    char *name;
    int *age;
    int *sal;
 }data,*ptr;
 char name1[10]= "R.O. Verma";
 int age1=50;
 int sal1=17000;
 ptr-&gt;name=&amp;name1;
 ptr-&gt;age=&amp;age1;
 ptr-&gt;sal=&amp;sal1;
 printf ( "Name:%s\n" , ptr-&gt;name );
 printf ( "Age:%d\n" , *ptr-&gt;age );
 printf ( "Salary:%d\n" , *ptr-&gt;sal );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2675776376532815543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2675776376532815543&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2675776376532815543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2675776376532815543'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-use-pointer-as-member-of.html' title='program to use a pointer as a member of structure and print the value of members'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-485176485636336202</id><published>2009-11-15T18:02:00.000+05:30</published><updated>2009-11-15T18:08:44.620+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointer to Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Structures'/><title type='text'>program to pass the address of the structure variable</title><summary type='text'>#include&lt;stdio.h&gt;

struct rec{
   char name[10];
   int age;
   int sal;
 };
main ( )
{
 static struct rec data = { "sachin" , 26 , 25000 };
 function ( &amp;data );
}
function ( ptr )
struct rec *ptr;
{
 printf ( "Name:%s\n" ,ptr-&gt;name );
 printf ( "Age:%d\n" , ptr-&gt;age );
 printf ( "Salary:%d\n" , ptr-&gt;sal );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/485176485636336202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=485176485636336202&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/485176485636336202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/485176485636336202'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-pass-address-of-structure.html' title='program to pass the address of the structure variable'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7342535517763070480</id><published>2009-11-15T18:00:00.002+05:30</published><updated>2009-11-15T18:08:44.622+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointer to Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Structures'/><title type='text'>Program to assign the value to member of structure with the use of structure pointer</title><summary type='text'>#include&lt;stdio.h&gt;

main ( )
{
 struct rec{
   char name[10];
    int age;
    int sal;
  }*ptr;
 strcpy(ptr-&gt;name, "suresh");
 ptr-&gt;age= 24;
 ptr-&gt;sal = 5000;
 printf ( "Name:%s\n" , ptr-&gt;name );
 printf ( "Age:%d\n" , ptr-&gt;age );
 printf ( "Salary:%d ", ptr-&gt;sal );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7342535517763070480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7342535517763070480&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7342535517763070480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7342535517763070480'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-assign-value-to-member-of.html' title='Program to assign the value to member of structure with the use of structure pointer'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1765216085627534854</id><published>2009-11-15T17:59:00.002+05:30</published><updated>2009-11-15T18:08:44.623+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointer to Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Structures'/><title type='text'>Program to understand pointer to structure</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 struct rec{
    char name[10];
    int age;
    int sal;
  }*ptr;
 printf ( " Enter the name:" );
 scanf ( "%s" , ptràname );
 printf ( " Enter the age:");
 scanf ( "%d" , &amp;ptràage );
 printf ( " Enter the salary:" );
 scanf ( "%d" , &amp;ptràsal );
 printf ( "Name:%s\n" , ptràname);
 printf ( " Age:%d\n" , ptràage );
 printf ( " Salary:%d ", ptràsal );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1765216085627534854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1765216085627534854&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1765216085627534854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1765216085627534854'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-understand-pointer-to.html' title='Program to understand pointer to structure'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7391600429007910708</id><published>2009-11-15T17:58:00.002+05:30</published><updated>2009-11-15T17:58:49.350+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic Memory Allocation'/><title type='text'>program to understand the use of realloc function</title><summary type='text'>#include&lt;stdio.h&gt;
#include&lt;alloc.h&gt;
#include&lt;string.h&gt;

main ( )
{
 char *ptr;
 ptr = ( char * ) malloc ( 6 );
 ptr = "ankit";
 printf ("%s is in memory block\n",ptr );
 ptr = ( char * ) realloc ( ptr,8);
 printf ("%s is in memory block\n",ptr );
 strcpy ( ptr , "rishabh" );
 printf ("Now %s is in memory block\n",ptr );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7391600429007910708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7391600429007910708&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7391600429007910708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7391600429007910708'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-understand-use-of-realloc.html' title='program to understand the use of realloc function'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2945417663880863698</id><published>2009-11-15T17:56:00.003+05:30</published><updated>2009-11-15T17:58:10.700+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic Memory Allocation'/><title type='text'>program to enter the 5 numbers and print them using malloc( )</title><summary type='text'>#include&lt;stdio.h&gt;
#include&lt;malloc.h&gt;

main ( )
{
int i;
int *a;
a = ( int * ) malloc ( 5 * sizeof ( int ) );
for ( i=0;i&lt;5;i++)
{
printf ( " number %d=", i+1);
scanf ( "%d",( a+i) );
}
for ( i =0;i&lt;5;i++)
printf ( " %d\n",*(a+i) );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2945417663880863698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2945417663880863698&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2945417663880863698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2945417663880863698'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-enter-5-numbers-and-print.html' title='program to enter the 5 numbers and print them using malloc( )'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4986458689431031392</id><published>2009-11-15T17:55:00.002+05:30</published><updated>2009-11-15T17:55:57.235+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic Memory Allocation'/><title type='text'>program to understand the sizeof operator</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 struct
 {
     char name[10];
     int age;
     float sal;
 }rec;
 int arr[10];
 printf ( " size of structure = %d",sizeof ( rec ) );
 printf ( " size of int = %d",sizeof ( int ) );
 printf ( " size of array = %d",sizeof ( arr ) );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4986458689431031392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4986458689431031392&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4986458689431031392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4986458689431031392'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-understand-sizeof-operator.html' title='program to understand the sizeof operator'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8910835513367371788</id><published>2009-11-15T17:54:00.000+05:30</published><updated>2009-11-15T17:54:15.530+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='String and Pointers'/><title type='text'>program to print the address and string using array of pointer to string</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int i;
 char *arr[ ] = {
   "riti",
   "niti",
   "kriti",
   "kittu",
   "nitin"
   };

 for ( i=0;i&lt;5;i++)
 {
  printf ( "address=%u\t",(arr + i) );
  printf ( "string = %s\n", *(arr + i) );
 }
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8910835513367371788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8910835513367371788&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8910835513367371788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8910835513367371788'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-address-and-string.html' title='program to print the address and string using array of pointer to string'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5004092685348304820</id><published>2009-11-15T17:52:00.005+05:30</published><updated>2009-11-15T17:54:35.973+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='String and Pointers'/><title type='text'>program to print the address and character of the string with using pointer</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
char arr[ ]= "reena";
char *a;
a = arr;
while ( *a !='\0' )
{
printf ( "address= %u\t",a);
printf ( "character = %c\n",*a);
a = a+1;
}
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5004092685348304820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5004092685348304820&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5004092685348304820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5004092685348304820'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-address-and-character.html' title='program to print the address and character of the string with using pointer'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4871325999215642943</id><published>2009-11-15T17:52:00.003+05:30</published><updated>2009-11-15T17:52:54.149+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='String and Pointers'/><title type='text'>program to print the strings of the two-dimensional character array</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
char arr[5][10] = {
  "riti",
  "niti",
  "kriti",
  "kittu",
  "nitin"
  };
 int i;
 for ( i=0;i&lt;5;i++)
 {
  printf ( " base address = %u",&amp;arr[ i] );
  printf ( " string = %s\n",arr[ i] );
 }
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4871325999215642943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4871325999215642943&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4871325999215642943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4871325999215642943'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-strings-of-two.html' title='program to print the strings of the two-dimensional character array'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6431714385898499480</id><published>2009-11-15T17:51:00.003+05:30</published><updated>2009-11-15T17:53:22.967+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='String and Pointers'/><title type='text'>program to print the character of any string and also address of each character</title><summary type='text'>#include&lt;stdio.h&gt;
main( )
{
char arr[ ] = "reeta";
int i;
for ( i=0;arr[i]!='\0';i++)
{
printf ( " address = %u\t",&amp;arr[i] );
printf ( "character = %c\n",arr[i] );
}
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6431714385898499480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6431714385898499480&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6431714385898499480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6431714385898499480'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-character-of-any.html' title='program to print the character of any string and also address of each character'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8400222183916733964</id><published>2009-11-15T17:50:00.001+05:30</published><updated>2009-11-15T17:50:54.732+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>program for understanding array of pointers</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
static int arr[4] = { 5 , 10 , 15 , 20 };
static int *a[4] = { arr , arr+1 , arr+2 , arr+3};
int i;
int **b;
b=a;
for ( i = 0;i &lt; 4 ; i++)
{
printf ( " address = %u",*b);
printf ( " value = %d \n",**b);
b = b + 1;
}
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8400222183916733964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8400222183916733964&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8400222183916733964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8400222183916733964'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-for-understanding-array-of.html' title='program for understanding array of pointers'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-786516457570846282</id><published>2009-11-15T17:49:00.000+05:30</published><updated>2009-11-15T17:49:16.544+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>program for understanding the concept of array of pointers</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int *arr[3];
 int a = 5, b = 10, c = 15,i;
 arr[0] = &amp;a;
 arr[1] = &amp;b;
 arr[2] = &amp;c;
 for ( i=0;i&lt; 3;i++)
 {
  printf ( "address = %u\t", arr[i] );
  printf ( " value = %d \n",*(arr[i]) );
 }
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/786516457570846282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=786516457570846282&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/786516457570846282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/786516457570846282'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-for-understanding-concept-of.html' title='program for understanding the concept of array of pointers'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6686490942918110179</id><published>2009-11-15T17:48:00.000+05:30</published><updated>2009-11-15T17:48:26.110+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>program to print the elements of 3-D array</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int arr[2][3][2] = {
   {
    { 5 , 10 },
    { 6 , 11 },
    { 7 , 12 },
   },
   {
    { 20 , 30 },
    { 21 , 31 },
    { 22 , 32 },
    }
      };
 int i,j,k;
 for ( i=0;i &lt; 2;i++)
 for ( j=0;j &lt; 3 ; j++)
 {
  printf ( " \n");
  for ( k =0;k&lt;2;k++)
   printf ( " %d\t",*(*(*(arr+i)+j)+k));
 }
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6686490942918110179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6686490942918110179&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6686490942918110179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6686490942918110179'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-elements-of-3-d-array.html' title='program to print the elements of 3-D array'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7280625797322555072</id><published>2009-11-15T17:47:00.002+05:30</published><updated>2009-11-15T17:47:34.602+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Program to print the elements of the array</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int arr[3][2] = {
   { 10 , 100 },
   { 20 , 200 },
   { 30 , 300 }
     };
 int i , j;
 for ( i = 0 ; i &lt; 3 ; i++)
 {
  printf ( " \n" );
  for ( j=0;j&lt; 2;j++)
   printf ( "value = %d\t", *(*(arr+i)+j));
 }
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7280625797322555072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7280625797322555072&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7280625797322555072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7280625797322555072'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-elements-of-array.html' title='Program to print the elements of the array'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2389191674737019322</id><published>2009-11-15T17:46:00.000+05:30</published><updated>2009-11-15T17:46:21.643+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>program to print the values and address of the array element</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int arr[3][2]= {
   {10,100},
   {20,200},
   {30,300}
   };
 int i, j;

 for ( i = 0; i &lt; 3; i++)
 {
  printf ( "address of %d array = %u\n",i,&amp;arr[i]);
  for ( j=0 ; j &lt; 2 ; j++);
   printf ( "value = %d\n",arr[i][j] );
 }
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2389191674737019322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2389191674737019322&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2389191674737019322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2389191674737019322'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-values-and-address-of.html' title='program to print the values and address of the array element'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3982851269459915926</id><published>2009-11-15T17:45:00.000+05:30</published><updated>2009-11-15T17:45:10.922+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Call By Reference'/><title type='text'>program to accept 10 numbers and sort them with use of pointer</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int i,j;
 int arr[10];
 int *a;
 a=arr;
 for ( i=0;i&lt;10;i++)
 {
  printf ( "Enter the number %d : ",i+1);
  scanf ( "%d",&amp;arr[i]);
 }
 printf ( "Before sorting:\n" );
 for ( i=0; i&lt;10 ; i++)
  printf ( " %d    " , arr[i] );
 printf ( "\n" );
 a=arr;

 for ( i=0;i&lt;10;i++)
    for ( j=0;j&lt;10-i-1;j++)
  if ( *(arr+j) &gt; *(arr+j+1))
   swap(arr+j , arr+j+1);

 printf ( " </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3982851269459915926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3982851269459915926&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3982851269459915926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3982851269459915926'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-accept-10-numbers-and-sort.html' title='program to accept 10 numbers and sort them with use of pointer'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6933999523018213513</id><published>2009-11-15T17:42:00.001+05:30</published><updated>2009-11-15T17:42:43.833+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>program to accept 10 numbers and print the total with use of pointer</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int i,total;
int arr[10];
int *a;
a = arr;
for ( i=0;i&lt;10;i++)
{
printf ( " Enter the number %d : ",i+1);
scanf ( "%d",&amp;arr[i]);
}
for ( i=0;i &lt; 10 ; i++)
{
printf ( "%d---",*a);
total = total + *a;
a=a+1;
}
printf ( "\n Total = %d\n",total);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6933999523018213513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6933999523018213513&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6933999523018213513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6933999523018213513'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-accept-10-numbers-and-print.html' title='program to accept 10 numbers and print the total with use of pointer'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1962859817415606647</id><published>2009-11-15T17:38:00.003+05:30</published><updated>2009-11-15T17:42:59.459+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Call By Reference'/><title type='text'>Use the pointer with function to print the value and address of the array element</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int arr[4]={ 5 , 10 , 15 , 20 };
fun ( arr);
}

fun ( int *a)
{
int i ;
for ( i = 0; i &lt;=4;i++)
{
printf ( " value of arr[%d]=%d\n",i,*a);
printf ( "address of arr[%d]=%u\n",i,a);
a=a+1;
}
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1962859817415606647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1962859817415606647&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1962859817415606647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1962859817415606647'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/use-pointer-with-function-to-print.html' title='Use the pointer with function to print the value and address of the array element'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5300914222779048283</id><published>2009-11-15T17:37:00.002+05:30</published><updated>2009-11-15T17:37:47.829+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arrays and Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Use pointer to print the value and address of array elements</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int arr[4] = { 5 , 10 , 15 , 20 };
 int i = 0;
 int *b;
 b = arr; /*we can also write b = &amp;arr[0] */
 for ( i = 0;i&lt;=4;i++)
 {
  printf ( "value of arr[%d]=%d\n",i,*b);
  printf ( "address of arr[%d]=%u\n",i,b);
  b=b+1;
 }
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5300914222779048283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5300914222779048283&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5300914222779048283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5300914222779048283'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/use-pointer-to-print-value-and-address.html' title='Use pointer to print the value and address of array elements'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5972480422246357608</id><published>2009-11-15T17:35:00.004+05:30</published><updated>2009-11-15T17:36:38.118+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Array'/><title type='text'>program to print the value and address of the element</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int arr[4] = { 5 , 10 , 15 , 20 };
int i = 0;
for ( i=0;i&lt;4;i++)
{
printf ( "value of arr[%d] = %d\n",i,arr[i]);
printf ( " address of arr[%d] = %u\n",i,&amp;arr[i] );
}
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5972480422246357608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5972480422246357608&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5972480422246357608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5972480422246357608'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-print-value-and-address-of.html' title='program to print the value and address of the element'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8462805615140469579</id><published>2009-11-15T17:34:00.000+05:30</published><updated>2009-11-15T17:34:35.045+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Call By Reference'/><title type='text'>Implementation of Pointers : Part 7</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int a = 5;
 int *b;
 int *fun( );
 b = &amp;a;
 printf ( " Before calling the function address of a = %u\n",b);
 b = fun( &amp;b);
 printf ( " After calling the function value of b = %u\n",b);
 }
int *fun(int **x )
{
 *x = *x + 1;
 return ( *x );
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8462805615140469579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8462805615140469579&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8462805615140469579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8462805615140469579'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/implementation-of-pointers-part-7.html' title='Implementation of Pointers : Part 7'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7874846189715215302</id><published>2009-11-15T17:32:00.000+05:30</published><updated>2009-11-15T17:32:25.076+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Call By Reference'/><title type='text'>program to interchange the value of variables from call by reference</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int a = 5;
 int b = 8;
 printf ( " Before swapping  a = %d , b = %d\n",a,b);
 swap ( &amp;a,&amp;b);
 printf ( "After calling swap function  a = %d , b = %d\n",a,b);
}
swap ( p , q)
int *p,*q;
{
 int temp;
 temp = *p;
 *p = *q;
 *q = temp;
 printf ( " In swapping function  p = %d , q = %d\n",*p,*q);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7874846189715215302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7874846189715215302&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7874846189715215302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7874846189715215302'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-interchange-value-of.html' title='program to interchange the value of variables from call by reference'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1869512826370289332</id><published>2009-11-15T17:31:00.003+05:30</published><updated>2009-11-15T17:33:15.130+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Call By Value'/><title type='text'>program to interchange the value of two variable from call by value</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int a = 5;
int b = 8;
printf ( " Before swapping a = %d , b = %d\n",a,b);
swap( a , b);
printf ( " After calling swap function a = %d , b = %d\n",a,b);
}
swap( p , q)
int p , q;
{
int temp;
temp = p;
p = q;
q = temp;
printf ( " In swapping function  p = %d , q = %d\n",p,q);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1869512826370289332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1869512826370289332&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1869512826370289332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1869512826370289332'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-interchange-value-of-two.html' title='program to interchange the value of two variable from call by value'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7481010195484127639</id><published>2009-11-15T17:30:00.003+05:30</published><updated>2009-11-15T17:32:53.652+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='Call By Reference'/><title type='text'>program to explain call by reference</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int a = 5;
int b = 8;
printf (" Before calling the function a and b are %d , %d\n",a,b);
ref ( &amp;a , &amp;b);
printf ( " After calling the function a and b are %d , %d\n",a,b);
}

ref ( p , q )
int *p,*q;
{
(*p)++;
(*q)++;
printf ( " In function changes are %d , %d\n" , *p,*q);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7481010195484127639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7481010195484127639&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7481010195484127639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7481010195484127639'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-explain-call-by-reference.html' title='program to explain call by reference'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2942886220342661184</id><published>2009-11-15T17:29:00.003+05:30</published><updated>2009-11-15T17:33:29.046+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Call By Value'/><title type='text'>program to explain call by value</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int a = 5;
int b = 8;
printf ( " Before calling the function a and b are %d , %d\n",a,b);
value( a , b );
printf ( " After calling the a and b are %d , %d\n",a,b);
}
value ( p , q )
int p , q;
{
p++;
q++;
printf ( " In function changes are %d , %d\n", p , q);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2942886220342661184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2942886220342661184&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2942886220342661184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2942886220342661184'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-explain-call-by-value.html' title='program to explain call by value'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6213906636456975687</id><published>2009-11-15T17:27:00.004+05:30</published><updated>2009-11-15T17:28:47.072+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Implementation of Pointers : Part 6</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int a = 5;
int *a1;
char b = 'x';
char *b1;
float c = 5.5;
float *c1;
a1 = &amp;a;
b1 = &amp;b;
c1 = &amp;c;
printf ( " address of a=value of a1= %u\n",a1);
printf ( " address of b=value of b1 = %u\n",b1);
printf ( " address of c =value of c1= %u\n",c1);
a1++;
b1++;
c1++;
printf ( " Now value of a1=%u\n",a1);
printf ( " Now value of b1 = %u\n",b1);
printf ( " Now value of c1 = %u</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6213906636456975687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6213906636456975687&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6213906636456975687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6213906636456975687'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/implementation-of-pointers-part-6.html' title='Implementation of Pointers : Part 6'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5443526229161687274</id><published>2009-11-15T17:27:00.000+05:30</published><updated>2009-11-15T17:29:11.061+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Program to understand the postfix, prefix, increment, decrement in the pointer variable</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int a = 5;
 int *b;
 b = &amp;a;
 printf(" address of a = %u\n",b);
 printf(" value of b = %u\n",++b);
 printf(" value of b = %u\n",b++);
 printf(" value of b = %u\n",--b);
 printf(" value of b = %u\n",b--);
 printf(" value of b = %u\n",b);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5443526229161687274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5443526229161687274&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5443526229161687274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5443526229161687274'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/program-to-understand-postfix-prefix.html' title='Program to understand the postfix, prefix, increment, decrement in the pointer variable'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6929328536510259211</id><published>2009-11-15T17:23:00.002+05:30</published><updated>2009-11-15T17:29:11.062+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Implementation of Pointers : Part 5</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
 int a = 5;
 int *b;
 int **c;
 b = &amp;a;
 c = &amp;b;
 printf("value of a = %d\n",a);
 printf(" value of a = %d\n",*(&amp;a));
 printf(" value of a = %d\n",*b);
 printf(" value of a = %d\n",**c);
 printf(" value of b = address of a = %u\n",b);
 printf(" value of c = address of b = %u\n",c);
 printf(" address of a = %u\n",&amp;a);
 printf(" address of a = %u\n",b);
 printf(" </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6929328536510259211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6929328536510259211&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6929328536510259211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6929328536510259211'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/implementation-of-pointers-part-5.html' title='Implementation of Pointers : Part 5'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8715599319478645337</id><published>2009-11-15T17:22:00.001+05:30</published><updated>2009-11-15T17:29:11.064+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Implementation of Pointers : Part 4</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
char a = 'p';
char *a1;
int b = 5;
int *b1;
float c = 5.5;
float *c1;
a1 = &amp;a;
b1 = &amp;b;
c1 = &amp;c;
printf("value of a = %c\n",a);
printf("value of a = %c\n",*(&amp;a));
printf("value of a = %c\n",*a1);
printf("value of b = %d\n",b);
printf("value of b = %d\n",*(&amp;b));
printf("value of b = %d\n",*b1);
printf("value of c = %f\n",c);
printf("value of c = %f\n",*(&amp;c));
printf("</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8715599319478645337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8715599319478645337&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8715599319478645337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8715599319478645337'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/implementation-of-pointers-2.html' title='Implementation of Pointers : Part 4'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8840278941704086275</id><published>2009-11-15T17:21:00.001+05:30</published><updated>2009-11-15T17:29:11.066+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Implementation of Pointers : Part 3</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int a = 5;
int *b;
b = &amp;a;
printf("value of a = %d\n",a);
printf("value of a = %d\n",*( &amp;a));
printf("value of a = %d\n",*b);
printf("address of a = %u\n",&amp;a);
printf("address of a =%u\n",b);
printf("address of b = %u\n",&amp;b);
printf("value of b = address of a = %u",b);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8840278941704086275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8840278941704086275&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8840278941704086275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8840278941704086275'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/implementation-of-pointers.html' title='Implementation of Pointers : Part 3'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2948353759005445833</id><published>2009-11-15T17:20:00.001+05:30</published><updated>2009-11-15T17:29:11.067+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Implementation of Pointers : Part 2</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{

int a = 5;
printf("value of a = %d\n",a);
printf("address of a = %u\n",&amp;a);
printf("value at address %u = %d\n",&amp;a,*(&amp;a));
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2948353759005445833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2948353759005445833&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2948353759005445833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2948353759005445833'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/address-and-value-in-address.html' title='Implementation of Pointers : Part 2'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3560258731226893756</id><published>2009-11-15T17:17:00.002+05:30</published><updated>2009-11-15T17:29:11.069+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pointers'/><title type='text'>Implementation of Pointers : Part 1</title><summary type='text'>#include&lt;stdio.h&gt;
main ( )
{
int a = 5;
printf("value of a = %d\n",a);
printf("address of a = %u\n",&amp;a);
}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3560258731226893756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3560258731226893756&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3560258731226893756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3560258731226893756'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/11/address.html' title='Implementation of Pointers : Part 1'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6468722034152519775</id><published>2009-08-18T15:35:00.001+05:30</published><updated>2009-08-18T15:35:49.481+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Kruskals Algorithm</title><summary type='text'>PROGRAM FOR KRUSKAL ALGORITHM#include&lt;stdio.h&gt;struct edge{    int vs,vd,wt,used;}s[20];int g[20][20];void kruskal(int n);main(){    int n,i,j;    printf("ENTER THE NO. OF VERTICES");    scanf("%d",&amp;n);    printf("ENTER THE WEIGHTED ADJACENCY MATRIX\n");    for(i=1;i&lt;=n;i++)        for(j=1;j&lt;=n;j++)            scanf("%d",&amp;g[i][j]);    printf("THE ADJACENCY MATRIX IS\n");    for(i=1;i&lt;=n;i++)    {</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6468722034152519775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6468722034152519775&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6468722034152519775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6468722034152519775'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/kruskals-algorithm.html' title='Kruskals Algorithm'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2186622539698651771</id><published>2009-08-18T15:29:00.002+05:30</published><updated>2009-08-18T15:34:59.313+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Dijkistras Algorithm Implementation in C</title><summary type='text'>DIJKISTRA'S SHORTEST PATH#include&lt;stdio.h&gt;struct edge{       int vs,vd,wt;}a[20];void dj(int);int g[20][20];main(){       int n,i,j;       printf("ENTER THE NO. OF VERTICES ");       scanf("%d",&amp;n);       printf("ENTER THE DIRECTED ADJACENCY MATRIX\n");       for(i=1;i&lt;=n;i++)                       for(j=1;j&lt;=n;j++)                               scanf("%d",&amp;g[i][j]);       printf("THE MATRIX IS")</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2186622539698651771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2186622539698651771&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2186622539698651771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2186622539698651771'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/dijkistras-algorithm-implementation-in.html' title='Dijkistras Algorithm Implementation in C'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5443547744675631515</id><published>2009-08-18T15:18:00.000+05:30</published><updated>2009-08-18T15:29:51.432+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>BFS and DFS</title><summary type='text'>Breadth First Traversal and Depth First Traversal#include&lt;stdio.h&gt;int q[20],top=-1,front=-1,rear=-1,a[20][20],vis[20],stack[20];int delete();void add(int item);void bfs(int s,int n);void dfs(int s,int n);void push(int item);int pop();main(){        int n,i,s,ch,j;        char c,dummy;        printf("ENTER THE NUMBER VERTICES ");        scanf("%d",&amp;n);        for(i=1;i&lt;=n;i++)        {</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5443547744675631515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5443547744675631515&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5443547744675631515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5443547744675631515'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/bfs-and-dfs.html' title='BFS and DFS'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-321856821529805800</id><published>2009-08-18T15:17:00.000+05:30</published><updated>2009-08-18T15:18:39.154+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Quick Sort</title><summary type='text'>Program for Quick sort in C#include&lt;stdio.h&gt;int a[50],n,i;void quick_sort(int [],int,int);int main(){        printf("RANGE : ");        scanf("%d",&amp;n);        printf("ELEMENTS \n");        for(i=0;i&lt;n;i++)        {                scanf("%d",&amp;a[i]);        }        quick_sort(a,0,n-1);        printf("AFTER QUICK SORT\n");        for(i=0;i&lt;n;i++)        {                printf("%d\t",a[i]);        </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/321856821529805800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=321856821529805800&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/321856821529805800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/321856821529805800'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/quick-sort.html' title='Quick Sort'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-96093484760948828</id><published>2009-08-18T15:11:00.000+05:30</published><updated>2009-08-18T15:13:15.961+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Priority Queue</title><summary type='text'> Program to implement Priority queue in C#include&lt;stdio.h&gt;#include&lt;malloc.h&gt;void insert();void del();void display();struct node  {        int priority;        int info;        struct node *next;  }*start,*q,*temp,*new;typedef struct node *N;int main(){        int ch;        do        {                printf("\n[1] INSERTION\t[2] DELETION\t[3] DISPLAY [4] EXIT\t:");                scanf("%d",&amp;ch);</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/96093484760948828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=96093484760948828&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/96093484760948828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/96093484760948828'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/priority-queue.html' title='Priority Queue'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3627632036221929691</id><published>2009-08-18T15:07:00.000+05:30</published><updated>2009-08-18T15:08:17.424+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Merge Sort</title><summary type='text'>Merge Sort Using C     c-pgms.blogspot.com#include&lt;stdio.h&gt;int a[50],n,p=0;main(){  int i;  printf("NO OF ELTS.\n");  scanf("%d",&amp;n);  printf("ENTER THE ELTS.:\n");  for(i=0;i&lt;n;i++)  {    scanf("%d",&amp;a[i]);  }  msort(0,n-1);  printf("\nSORTED ARRAY:\n");  for(i=0;i&lt;n;i++)  {    printf("%d\t",a[i]);  }  printf("\n");}void mergesort(int low,int mid,int high){  int i,j,k,temp[50];  i=low;  j=mid+1;</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3627632036221929691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3627632036221929691&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3627632036221929691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3627632036221929691'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/merge-sort.html' title='Merge Sort'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6142735811323337583</id><published>2009-08-18T15:04:00.000+05:30</published><updated>2009-08-18T15:05:04.952+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Infix Expression Evaluation</title><summary type='text'>Program for Infix Prefix and Infix to Postfix Conversionc-pgms.blogspot.com#include&lt;stdio.h&gt;#include&lt;math.h&gt;#include&lt;ctype.h&gt;#define MAX 50#define T stk[top]char stk[MAX],po[MAX],in[MAX];int top=-1;struct list{    char data;    struct list *L,*R;};typedef struct list *node;node nstk[MAX],root;int ntop=-1;node exptree();int eval(node);main(){    printf("\n\nENTER THE EXPRESSION IN INFIX FORM : ");</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6142735811323337583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6142735811323337583&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6142735811323337583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6142735811323337583'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/infix-expression-evaluation.html' title='Infix Expression Evaluation'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8268424735914832953</id><published>2009-08-18T14:57:00.000+05:30</published><updated>2009-08-18T15:00:03.407+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Binary Search</title><summary type='text'>Binary Search using C     http://c-pgms.blogspot.com#include#define MAX 10int a[MAX];void sort(int);int search(int,int);main(){    int range,i,item;    printf("Enter Range\t: ");    scanf("%d",&amp;range);    printf("Enter Elements\t: ");    for(i=0;i&lt;range;i++)        scanf("\n%d",&amp;a[i]);    sort(range);    printf("Sorted Array is\t: ");    for(i=0;i&lt;range;i++)        printf("%d ",a[i]);    printf("</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8268424735914832953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8268424735914832953&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8268424735914832953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8268424735914832953'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/binary-search.html' title='Binary Search'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1106085427928711717</id><published>2009-08-18T14:50:00.002+05:30</published><updated>2009-08-18T14:56:59.506+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Heap Sort</title><summary type='text'>/*                       Heap Sort Using C    Done By : c-pgms.blogspot.com               */#include&lt;stdio.h&gt;main(){    int n,i,a[10];    printf("ENTER THE NO.OF ELEMENTS\n");    scanf("%d",&amp;n);    printf("ENTER THE ELEMENTS\n");    for(i=0;i&lt;n;i++)        scanf("%d",&amp;a[i]);    heap(a,n);}heap(int a[],int n){    int b[10],i,temp,loc,par;    for(i=0;i&lt;n;i++)    {        loc=i;        b[i]=a[i];</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1106085427928711717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1106085427928711717&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1106085427928711717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1106085427928711717'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/08/heap-sort.html' title='Heap Sort'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7534074267599794601</id><published>2009-04-30T20:57:00.014+05:30</published><updated>2009-12-04T16:18:34.430+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Site Map'/><title type='text'>Program Listing - Site Map</title><summary type='text'>Introductory Programs in C
This section includes program for starters in C

Hello World C Program.
Less than, Greater than Logic.
C Program to Print ASCII Value.
C Program to Find Average of Two Numbers

C Program to Check Equality of a Float Value and Integer Value.
C Program to Find Squares of Numbers within a Given Range.
C Program to Swap or Interchange two values.
Working of If Else </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7534074267599794601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7534074267599794601&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7534074267599794601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7534074267599794601'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/04/program-listing.html' title='Program Listing - Site Map'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-464721583595842187</id><published>2009-04-27T10:27:00.000+05:30</published><updated>2009-04-27T10:32:48.447+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Binary Search Tree</title><summary type='text'>/* PROGRAM TO IMPLEMENT BINARY SEARCH TREE IN C*/#include&lt;stdio.h&gt;struct BT{   int data;   struct BT *right,*left;};void insert(struct BT ** ptr,int d){   if((*ptr)==NULL)   { (*ptr)=(struct BT*)malloc(sizeof(struct BT)); (*ptr)-&gt;data=d; (*ptr)-&gt;left=(*ptr)-&gt;right=NULL;   }   else   { if((*ptr)-&gt;data&gt;d)     insert(&amp;((*ptr)-&gt;left),d);  else     insert(&amp;((*ptr)-&gt;right),d);   }   return;}int search(</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/464721583595842187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=464721583595842187&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/464721583595842187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/464721583595842187'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/04/binary-search-tree.html' title='Binary Search Tree'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4836484045060253441</id><published>2009-02-09T17:45:00.002+05:30</published><updated>2009-02-09T17:48:32.173+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='File Operations'/><title type='text'>File Operations</title><summary type='text'>// File Operation// Program to store students data into a file which can be accessed later.This is the basic program to study file operations in c#include&lt;stdio.h&gt;#define SIZE 10struct student{    char name[SIZE];    int roll;    int tot;    int m1,m2,m3;}s,temp[SIZE],t[SIZE],s1;main(){    int ch;    FILE *fp;    do    {        printf("\n\tMenu\n");        printf("\t[1] Insert\n");        printf(</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4836484045060253441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4836484045060253441&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4836484045060253441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4836484045060253441'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2009/02/file-operations.html' title='File Operations'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4786920102083215522</id><published>2008-12-17T10:42:00.001+05:30</published><updated>2008-12-17T10:43:48.820+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Jordan Elimination</title><summary type='text'>#include&lt;stdio.h&gt;void solution(int a[][],int n);int main(){ int a[20][20],n,i,j,k,l; printf("\nENTER THE NUMBER OF VARIABLES:\n"); scanf("%d",&amp;n); for(i=0;i&lt;n;i++) {  printf("\nENTER THE EQUATION%d:\n",i+1);  for(j=0;j&lt;n;j++)  {   printf("ENTER THE COEFFICIENT OF x%d:\n",j+1);   scanf("%d",&amp;a[i][j]);  }  printf("\nENTER THE CONSTANT:\n");  scanf("%d",&amp;a[i][n]); } solution(a,n);}/************</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4786920102083215522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4786920102083215522&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4786920102083215522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4786920102083215522'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/jordan-elimination.html' title='Jordan Elimination'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6267103609993669766</id><published>2008-12-12T20:36:00.002+05:30</published><updated>2008-12-12T20:38:25.280+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Merge Sort</title><summary type='text'>#include&lt;stdio.h&gt;int a[50],n,p=0;main(){  int i;  printf("Enter the no.of elements to be sorted \n");  scanf("%d",&amp;n);  printf("Enter the elements to be sorted into the array:\n");  for(i=0;i&lt;n;i++)  {    scanf("%d",&amp;a[i]);  }  printf("\nThe entered elements are:\n");  for(i=0;i&lt;n;i++)  {    printf("%d\t",a[i]);  }  msort(0,n-1);  printf("\nThe sorted array is:\n");  for(i=0;i&lt;n;i++)  {    printf</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6267103609993669766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6267103609993669766&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6267103609993669766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6267103609993669766'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/merge-sort.html' title='Merge Sort'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1793644245013587081</id><published>2008-12-12T20:32:00.004+05:30</published><updated>2009-02-10T17:20:46.547+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linked List'/><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Various Linked List Operations</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;stdlib.h&gt;void ins_beg();void ins_end();void ins_loc();void del_beg();void del_end();void del_loc();void display();void count();struct node{int info;int *next;}*start;typedef struct node N;main(){int ch;while(ch!=8){printf("\n\t\t\t\t\tMENU \n1.Insert at the begining \n2.Insert at the end \n3.Insert at the specified location \n4.Delete from the beginin \n5.Delete from the</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1793644245013587081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1793644245013587081&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1793644245013587081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1793644245013587081'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/various-linked-list-operations.html' title='Various Linked List Operations'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4759591739162556776</id><published>2008-12-12T20:28:00.001+05:30</published><updated>2008-12-12T20:31:03.091+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Kruskals Algorithm</title><summary type='text'>#include&lt;stdio.h&gt;struct edge{ int vs,vd,wt,used;}s[20];int g[20][20];void kruskal(int n);main(){ int n,i,j; printf("ENTER THE NO. OF VERTICES"); scanf("%d",&amp;n); printf("ENTER THE WEIGHTED ADJACENCY MATRIX\n"); for(i=1;i&lt;=n;i++)  for(j=1;j&lt;=n;j++)   scanf("%d",&amp;g[i][j]); printf("THE ADJACENCY MATRIX IS\n"); for(i=1;i&lt;=n;i++) {  for(j=1;j&lt;=n;j++)   printf(" %d ",g[i][j]);  printf("\n"); } kruskal(n</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4759591739162556776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4759591739162556776&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4759591739162556776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4759591739162556776'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/kruskals-algorithm.html' title='Kruskals Algorithm'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-1635442342905129599</id><published>2008-12-12T20:25:00.001+05:30</published><updated>2008-12-12T20:28:05.283+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Infix and Postfix Expression Evaluation using Expression Tree</title><summary type='text'>#include&lt;stdio.h&gt;struct NODE{  char data;  struct NODE *lchild;  struct NODE *rchild;};typedef struct NODE *node;node exptree(char[]);void push_cha(node);void push_op(char);node pop_cha();char pop_op();void inorder(node);void preorder(node);void postorder(node);int prec(char);node create(){  return((node)malloc(sizeof(node)));}node newnode=NULL,root,temp,nstack[50];int optop=-1,ntop=-1,p,i,</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/1635442342905129599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=1635442342905129599&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1635442342905129599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/1635442342905129599'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/infix-and-postfix-expression-evaluation.html' title='Infix and Postfix Expression Evaluation using Expression Tree'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4228546994099093095</id><published>2008-12-12T20:20:00.001+05:30</published><updated>2008-12-12T20:22:19.816+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Heap Sort</title><summary type='text'>#include&lt;stdio.h&gt;main(){ int n,i,a[10]; printf("ENTER THE NO.OF ELEMENTS\n"); scanf("%d",&amp;n); printf("ENTER THE ELEMENTS\n"); for(i=0;i&lt;n;i++)  scanf("%d",&amp;a[i]); heap(a,n);}heap(int a[],int n){ int b[10],i,temp,loc,par; for(i=0;i&lt;n;i++) {  loc=i;  b[i]=a[i];  while(loc&gt;0)  {   par=(loc-1)/2;   if(b[loc]&gt;b[par])   {    temp=b[loc];    b[loc]=b[par];    b[par]=temp;   }   loc=par;  } }printf("HEAP</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4228546994099093095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4228546994099093095&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4228546994099093095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4228546994099093095'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/heap-sort.html' title='Heap Sort'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3620928789898648760</id><published>2008-12-01T12:58:00.004+05:30</published><updated>2008-12-01T13:03:30.991+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Inverse of a Matrix in C</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;math.h&gt;float detrm(float[][],float);void cofact(float[][],float);void trans(float[][],float[][],float);main(){ float a[25][25],k,d; int i,j; printf("ENTER THE ORDER OF THE MATRIX:\n"); scanf("%f",&amp;k); printf("ENTER THE ELEMENTS OF THE MATRIX:\n"); for(i=0;i&lt;k;i++) {  for(j=0;j&lt;k;j++)  {   scanf("%f",&amp;a[i][j]);  } } d=detrm(a,k); printf("THE DETERMINANT IS=%f",d); if(d==0</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3620928789898648760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3620928789898648760&amp;isPopup=true' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3620928789898648760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3620928789898648760'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/inverse-of-matrix-in-c.html' title='Inverse of a Matrix in C'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4486053596961278459</id><published>2008-12-01T12:56:00.003+05:30</published><updated>2008-12-01T13:03:52.786+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Matrix Multiplication</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;math.h&gt;#define MAX 25int main(){ int matrix_1[MAX][MAX],matrix_2[MAX][MAX],product_matrix[MAX][MAX]; int i,j,k,row_1,column_1,row_2,column_2; printf("Enter The no of rows &amp; columns First Matrix\n"); scanf("%d%d",&amp;row_1,&amp;column_1); printf("Enter the Number of rows &amp; columns of Second Matrix\n"); scanf("%d%d",&amp;row_2,&amp;column_2); if(column_1!=row_1)  printf("Multiplication </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4486053596961278459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4486053596961278459&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4486053596961278459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4486053596961278459'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/12/matrix-multiplication.html' title='Matrix Multiplication'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6761601904631345034</id><published>2008-11-17T16:00:00.002+05:30</published><updated>2008-12-01T13:04:05.059+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Matrix Multiplication in C using function</title><summary type='text'>#include&lt;stdio.h&gt;void matmul(int[][],int[][],int,int,int,int);main(){ int matrix_1[20][20],matrix_2[20][20],i,j,r1,r2,c1,c2; printf("Enter the number of rows and columns of first matrix :\t"); scanf("%d%d",&amp;r1,&amp;c1); printf("Enter the number of rows and columns of second matrix :\t"); scanf("%d%d",&amp;r2,&amp;c2); if(c1==r2) {  printf("Enter the elements of first matrix :\n");  for(i=0;i&lt;r1;i++)  {   for</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6761601904631345034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6761601904631345034&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6761601904631345034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6761601904631345034'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/11/matrix-multiplication-in-c.html' title='Matrix Multiplication in C using function'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8909739345562866492</id><published>2008-11-17T15:52:00.000+05:30</published><updated>2008-11-17T15:54:53.006+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Introductory Programs'/><title type='text'>Upper and Lower</title><summary type='text'>int main(){ int lower,upper; printf("enter the limits\n"); scanf("%d%d,&amp;lower,&amp;upper); if(lower&gt;upper) printf("NOT POSSIBLE"); else while(lower&lt;=upper) {  lower++;  printf("%d,%d",lower,upper); }}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8909739345562866492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8909739345562866492&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8909739345562866492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8909739345562866492'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/11/upper-and-lower.html' title='Upper and Lower'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5423709315695651111</id><published>2008-11-17T15:50:00.000+05:30</published><updated>2008-11-17T15:52:20.966+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Introductory Programs'/><title type='text'>Number of dates to years months and days</title><summary type='text'>int main(){ int n,years,months,days; printf("enter num_days\n"); scanf("%d",&amp;n); years=n/360; days=((n%360)%30); months=((n%360)/30); printf("%d,%d,%d",years,months,days);}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5423709315695651111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5423709315695651111&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5423709315695651111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5423709315695651111'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/11/number-of-dates-to-years-months-and.html' title='Number of dates to years months and days'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5484228149953647931</id><published>2008-11-17T15:46:00.001+05:30</published><updated>2008-11-17T15:49:40.695+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Introductory Programs'/><title type='text'>Swapping in C</title><summary type='text'>int main(){ int temp,num1 = 2,num2 = 3; temp=num1; num1=num2; num2=temp; printf("num1=%d,num2=%d\n",num1,num2);}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5484228149953647931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5484228149953647931&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5484228149953647931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5484228149953647931'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/11/swapping-in-c.html' title='Swapping in C'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5015509505298304446</id><published>2008-11-17T15:43:00.000+05:30</published><updated>2008-11-17T15:44:25.150+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Program to find factorial of a number</title><summary type='text'>int main(){ int num,i=1,fact=1; printf("ENTER THE NUMBER"); scanf("%d",&amp;num); while(i&lt;=num) {  fact=fact*i;  i++; } printf("%d",fact);}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5015509505298304446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5015509505298304446&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5015509505298304446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5015509505298304446'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/11/program-to-find-factorial-of-number.html' title='Program to find factorial of a number'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3287056754536664889</id><published>2008-11-17T15:38:00.000+05:30</published><updated>2008-11-17T15:39:32.686+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Change Case in C</title><summary type='text'>/*PROGRAM TO CHANGE THE CASE(LOWER-UPPER/UPPER-LOWER)OF A CHARACTER ENTERD FROM THE KEYBOARD*/int main(){ char c; c=getchar(); if(c&gt;65&amp;&amp;c&lt;90) {  c=c+32;  printf("%c",c); } else if(c&gt;=97&amp;&amp;c&lt;=122) {  c=c-32;  printf("%c",c); }}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3287056754536664889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3287056754536664889&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3287056754536664889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3287056754536664889'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/11/change-case-in-c.html' title='Change Case in C'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8624021972450358862</id><published>2008-10-31T12:58:00.001+05:30</published><updated>2008-10-31T13:00:53.048+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>String Permutation Using Recursion</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;string.h&gt;void permute(char * , int , int );char temp,n[20];int len;main(){ printf("ENTER THE STRING\n"); scanf("%s",n); len=strlen(n); permute(n,0,len);}void permute(char *n,const int start, int l){ int i,j; for(i=start;i&lt;len-1;++i) for(j=i+1;j&lt;len;++j) {  temp=n[i];n[i]=n[j];n[j]=temp;  permute(n,i+1,len);  temp=n[i];n[i]=n[j];n[j]=temp; } printf("%s\n",n);}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8624021972450358862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8624021972450358862&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8624021972450358862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8624021972450358862'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/string-permutation-using-recursion.html' title='String Permutation Using Recursion'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8516350749383708848</id><published>2008-10-29T13:05:00.001+05:30</published><updated>2008-10-29T13:07:30.299+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>String Permutation</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;string.h&gt;#include&lt;stdlib.h&gt;void perm(char * , int , int );char temp,str[20];int l;main(){ printf("enter the string : "); scanf("%s",str); l=strlen(str); perm(str,0,l);}void perm(char *str,const int strt, int len){ int i,j; for(i=strt;i&lt;len-1;++i) for(j=i+1;j&lt;len;++j) {  temp=str[i];  str[i]=str[j];  str[j]=temp;  perm(str , i+1 ,len);  temp=str[i];  str[i]=str[j];  str[j</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8516350749383708848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8516350749383708848&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8516350749383708848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8516350749383708848'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/string-permutation.html' title='String Permutation'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-602508626800152491</id><published>2008-10-29T12:57:00.004+05:30</published><updated>2008-10-31T13:03:51.908+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Lexicographic sorting in c</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;string.h&gt;void lexi(char[][],int);main(){ char n[20][20]; int i=0,item; printf("ENTER THE NUMBER OF ITEMS TO BE SORTED\n"); scanf("%d",&amp;item);  printf("ENTER THE ITEMS TO BE SORTED\n"); while(i&lt;item)    scanf("%s",n[i++]); lexi(n,item); }void lexi(char str[20][20],int num){ int i,j; char temp[20]; for(i=1;i&lt;num;i++) {  for(j=1;j&lt;=num-i;j++)  {   if(strcmp(str[j-1],str[j])</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/602508626800152491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=602508626800152491&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/602508626800152491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/602508626800152491'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/lexicographic-sorting-in-c.html' title='Lexicographic sorting in c'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5963211742239824234</id><published>2008-10-28T17:13:00.001+05:30</published><updated>2008-10-31T13:02:36.172+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Substring search and deletion</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;string.h&gt;#define SIZE 20int search(char [],char []);char* delete(char*,char*,int);int main(){ int p=0,i=0,pos=0,s=0,po=0; char a[SIZE],b[SIZE],d[SIZE],c[SIZE]; printf("enter the string\n"); gets(a); printf("enter the sub string\n"); gets(b); strcpy(d,a); while(p!=-1)  {                           p=search(d,b);   if(s&lt;strlen(a) &amp;&amp; p!=-1)   {         pos=p+s*strlen(b)+1;</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5963211742239824234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5963211742239824234&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5963211742239824234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5963211742239824234'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/string-search-and-deletion.html' title='Substring search and deletion'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3585638871898453484</id><published>2008-10-28T17:12:00.002+05:30</published><updated>2008-10-31T13:04:35.951+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Palindrome or not</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;string.h&gt;void palindrome(char[],int);main(){ int f=0,len,i,j; char str[20]; printf("ENTER THE STRING\n"); gets(str); len=strlen(str); palindrome(str,len);}void palindrome(char n[],int l){ int i,j,f=0; for(i=0,j=l-1;i&lt;l/2;i++,j--) {  if(n[i]!=n[j])  {  f=1;  } }  if(f==0) { printf("THE STRING IS PALINDROME\n"); } else { printf("THE STRING IS NOT A PALINDROME\n"); }}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3585638871898453484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3585638871898453484&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3585638871898453484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3585638871898453484'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/palindromes-or-not.html' title='Palindrome or not'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-6931177597577577611</id><published>2008-10-23T22:35:00.001+05:30</published><updated>2008-10-23T22:37:25.239+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Open Hashing Modular Technique</title><summary type='text'>/*Program to perform searching operation using Open hashing technique (modular technique)Done By : c-pgms.blogspot.com */#includevoid insert();void display();void search();void delete();struct node{   int info;   int *next;}*start[10];typedef struct node N;int i,g,key;main(){ int ch; do { p1: printf("\n\t\t\t\t\tMENU \n1.Insert \n2.Search \n3.Delete \n4.Display \n5.Exit"); scanf("%d",&amp;ch); switch</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/6931177597577577611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=6931177597577577611&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6931177597577577611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/6931177597577577611'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/open-hashing-modular-technique.html' title='Open Hashing Modular Technique'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3470343815195971295</id><published>2008-10-23T22:32:00.004+05:30</published><updated>2008-10-23T22:40:01.416+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Closed Hashing Modular Technique</title><summary type='text'>/*Program to do searching using Closed Hashing (modular technique)  Programmer :: c-pgms.blogspot.com*/#includeint ar[10],i,g=0,key;void insert();void search();void delete();void display();main(){  int ch;  for(i=0;i&lt;10;i++)          //to initialise every element as '-1'    ar[i]=-1; do{p1:  printf("\n\t\t\t\t\tMENU \n1.Insert \n2.Search \n3.Delete \n4.Display \n5.Exit");  scanf("%d",&amp;ch);  </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3470343815195971295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3470343815195971295&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3470343815195971295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3470343815195971295'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/closed-hashing.html' title='Closed Hashing Modular Technique'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4429759755559904144</id><published>2008-10-16T12:56:00.000+05:30</published><updated>2008-10-16T12:57:49.784+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Program to find a number prime or not</title><summary type='text'>#include&lt;stdio.h&gt;int prime_or_not(int);int main(){ int number,re; printf("Enter the number : "); scanf("%d",&amp;number); re=prime_or_not(number); if(re==1)  printf("%d is not  Prime\n",number); else if(re==0)  printf("%d is  Prime\n",number); else  printf("It is neither prime nor composite\n");}int prime_or_not(int num){ int i; if(num==0)  return 1; if(num==1)  return -1; for(i=2;ilt;=num/2;i++) {  </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4429759755559904144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4429759755559904144&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4429759755559904144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4429759755559904144'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/program-to-find-number-prime-or-not.html' title='Program to find a number prime or not'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-4297208634915317281</id><published>2008-10-06T14:28:00.001+05:30</published><updated>2008-10-06T14:32:54.226+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><title type='text'>Taylors Series for Sin, Cos and Exponential</title><summary type='text'>#include&lt;stdio.h&gt;#include&lt;math.h&gt;#define PI 3.1415float exp_x(int,int);double sin_x(int,int);double cos_x(int,int);int fact(int);int main(){ int choice,x,n; do {  printf("\nMenu\n[1] e^x)\n[2] Sin(x)\n[3] Cos(x)\n[4] Exit\n");  scanf("%d",&amp;choice);  switch(choice)  {  case 1: // to find exponential value   printf("e^x\nEnter x and n:\t");   scanf("%d %d",&amp;x,&amp;n);   printf("e^%d(%d) = %f\n",x,n,</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/4297208634915317281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=4297208634915317281&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4297208634915317281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/4297208634915317281'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/10/taylors-series-for-sin-cos-and.html' title='Taylors Series for Sin, Cos and Exponential'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2661904192810395091</id><published>2008-09-28T22:55:00.000+05:30</published><updated>2008-09-28T22:50:52.113+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Array'/><category scheme='http://www.blogger.com/atom/ns#' term='Queue'/><title type='text'>implentation of queue using arrays</title><summary type='text'>/* Implentation of queue using arrays */# include &lt;stdio.h&gt;# define SIZE 10int arr[SIZE], front = -1, rear = -1, i ;void enqueue() ;void dequeue() ;void display() ;int main(){ int ch ; do {  printf("\n[1].ENQUEUE [2].DEQUEUE [3].Display [4].Exit\n") ;  printf("Enter your choice [1-4] : ") ;  scanf("%d", &amp;ch) ;  switch(ch)  {   case 1 :    enqueue() ;    break ;   case 2 :    dequeue() ;    break </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2661904192810395091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2661904192810395091&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2661904192810395091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2661904192810395091'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/09/implentation-of-queue-using-arrays.html' title='implentation of queue using arrays'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-877925050319488006</id><published>2008-09-28T22:43:00.003+05:30</published><updated>2008-10-23T22:24:37.472+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>Floyd Warshalls Algorithm</title><summary type='text'>/*  FLOYD WARSHALL'S ALGORITHM  *//* author : c-pgms.blogspot.com */#include&lt;stdio.h&gt;#define inf 9999int min(int a,int b);main(){ int i,j,n,k,a[20][20],p[20][20],t; printf("ENTER THE NO. OF VERTICES  "); scanf("%d",&amp;n); printf("ENTER THE WEIGHTED ADJACENCY MATRIX"); for(i=1;i&lt;=n;i++)  for(j=1;j&lt;=n;j++)   scanf("%d",&amp;a[i][j]); for(i=1;i&lt;=n;i++)  for(j=1;j&lt;=n;j++)  {   if(a[i][j]==0)    p[i][j]=inf</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/877925050319488006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=877925050319488006&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/877925050319488006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/877925050319488006'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/09/floyd-warshalls-algorithm-auther-c-pgms.html' title='Floyd Warshalls Algorithm'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5832035159909610982</id><published>2008-09-28T22:40:00.001+05:30</published><updated>2008-09-28T22:43:47.324+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>BFS and DFS</title><summary type='text'>/*        B.F.S AND D.F.S        *//* done by : c-pgms.blogspot.com */#include&lt;stdio.h&gt;int q[20],top=-1,front=-1,rear=-1,a[20][20],vis[20],stack[20];int delete();void add(int item);void bfs(int s,int n);void dfs(int s,int n);void push(int item);int pop();main(){ int n,i,s,ch,j; char c,dummy; printf("ENTER THE NUMBER VERTICES "); scanf("%d",&amp;n); for(i=1;i&lt;=n;i++) {  for(j=1;j&lt;=n;j++)  {   printf("</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5832035159909610982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5832035159909610982&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5832035159909610982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5832035159909610982'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/09/bfs-and-dfs.html' title='BFS and DFS'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-5875986875007559104</id><published>2008-09-28T22:33:00.003+05:30</published><updated>2008-09-28T22:38:25.997+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure and Algorithm Lab'/><title type='text'>infix expression evaluation</title><summary type='text'>/*Program to create an expression tree and perform the expression   evaluation of an infix expression.  done by : c-pgms.blogspot.com*/#include&lt;stdio.h&gt;void check(char);void push(char);struct node{  char info;  struct node *r,*l;}temp,*operator[10],*operand[10];typedef struct node N;int p,top1=0,top2=0;main(){  char exp[20];  printf("\nENter the expression :: ");  gets(exp);  for(i=0;exp[i]!='\0'</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/5875986875007559104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=5875986875007559104&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5875986875007559104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/5875986875007559104'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/09/program-to-create-expression-tree-and.html' title='infix expression evaluation'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8085830819270250433</id><published>2008-08-22T13:49:00.006+05:30</published><updated>2008-09-10T01:48:57.044+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Various Base Conversions - Binary to Decimal, Decimal to Binary,  Binary to Hexadecimal,Hexadecimal to Binary, Binary to Octal, Octal to Binary</title><summary type='text'>/******************************************* Various Base Conversions    ********** Done By : C-PGMS.BLOGSPOT.COM******************************************/#include&lt;stdio.h&gt;#include&lt;math.h&gt;#define SIZE 20int binary_to_decimal(int);int decimal_to_binary(int);void binary_to_hexa(int);int hexa_to_binary(char []);void binary_to_octal(int);void octal_to_binary(int);int main(){ int choice=0,number=0; </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8085830819270250433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8085830819270250433&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8085830819270250433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8085830819270250433'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/08/various-base-conversions-binary-to.html' title='Various Base Conversions - Binary to Decimal, Decimal to Binary,  Binary to Hexadecimal,Hexadecimal to Binary, Binary to Octal, Octal to Binary'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7743810859502032029</id><published>2008-08-22T13:45:00.005+05:30</published><updated>2008-09-10T01:44:28.165+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Program to find Mean,Median,and Mode</title><summary type='text'>/**********************************************************************  Program to find Mean,Median,and Mode   ***********************************************************************/#define SIZE 100#include&lt;stdio.h&gt;float mean_function(float[],int);float median_function(float[],int);float mode_function(float[],int);int main(){ int i,n,choice; float array[SIZE],mean,median,mode; printf("Enter No </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7743810859502032029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7743810859502032029&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7743810859502032029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7743810859502032029'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/08/program-to-find-meanmedianand-mode_22.html' title='Program to find Mean,Median,and Mode'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2961849371309170255</id><published>2008-08-22T13:41:00.004+05:30</published><updated>2008-09-10T01:47:47.942+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming Lab'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Program to find HCF and LCM</title><summary type='text'>/**********************************************************************     Program to find HCF and LCM          ***********************************************************************/#define SIZE 100#include &lt;stdio.h&gt;int hcf_function(int,int);int lcm_function(int,int);int main(){    int array[SIZE],n,i,choice,lcm,hcf;    printf("Enter No of Elements\n");    scanf("%d",&amp;n);    printf("Enter </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2961849371309170255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2961849371309170255&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2961849371309170255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2961849371309170255'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/08/program-to-find-hcf-and-lcm-define-size.html' title='Program to find HCF and LCM'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3475019378137057094</id><published>2008-08-05T15:57:00.005+05:30</published><updated>2008-09-10T01:45:11.411+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Array'/><category scheme='http://www.blogger.com/atom/ns#' term='Stack'/><title type='text'>implementation of stack using array</title><summary type='text'>#include&lt;stdio.h&gt;void push(int);int pop(void);void display(void);int main(){    int choice=0,val=0;    do    {        printf("\n\t1.Push 2.Pop 3.Display 4.Exit\n\tSelect Your Choice : ");        scanf("%d",&amp;choice);        switch(choice)        {            case 1:                printf("\tElement to be Pushed : ");                scanf("%d",&amp;val);                push(val);                break;</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3475019378137057094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3475019378137057094&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3475019378137057094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3475019378137057094'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/08/implement-stack-using-array.html' title='implementation of stack using array'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-2829070084341291125</id><published>2008-04-10T16:26:00.010+05:30</published><updated>2008-09-10T01:31:25.548+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linked List'/><category scheme='http://www.blogger.com/atom/ns#' term='Queue'/><title type='text'>queue operations using linked list</title><summary type='text'>/*queue operations using linked list*/#include&lt;stdio.h&gt;#include&lt;malloc.h&gt;#define MAXSIZE 10void insertion();void deletion();void display();struct node{int info;struct node *link;}*new,*temp,*p,*front=NULL,*rear=NULL;typedef struct node N;main(){int ch;do{  printf("\n\t\t\tLinked queue");  printf("\n 1.Insertion");  printf("\n 2.Deletion");  printf("\n 3.Display");  printf("\n 4.Exit");  printf("\</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/2829070084341291125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=2829070084341291125&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2829070084341291125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/2829070084341291125'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/04/linked-list.html' title='queue operations using linked list'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-502612026587485179</id><published>2008-04-10T16:24:00.011+05:30</published><updated>2008-09-10T01:46:34.827+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linked List'/><category scheme='http://www.blogger.com/atom/ns#' term='Stack'/><title type='text'>Implementation of stack using linked list</title><summary type='text'>/*Implementation of stack using linked list*/#include&lt;stdio.h&gt;#include&lt;malloc.h&gt;#define maxsize 10void push();void pop();void display();struct node{int info;struct node *link;}*start=NULL, *new,*temp,*p;typedef struct node N;main(){int ch,a;do{ printf("\t\t\tLinked stack"); printf("\n 1.Push"); printf("\n 2.Pop"); printf("\n 3.Display"); printf("\n 4.Exit"); printf("\n Enter your choice : "); </summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/502612026587485179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=502612026587485179&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/502612026587485179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/502612026587485179'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/04/implementation-of-stack-using-linked.html' title='Implementation of stack using linked list'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-615064156822670593</id><published>2008-04-08T17:15:00.004+05:30</published><updated>2008-09-10T01:42:05.706+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Number of words,lines,characters</title><summary type='text'>#include&lt;stdio.h&gt;int main(){int c,w=0,ch=0,l=0;while((c=getchar())!=-1){++ch;if (c=='\n'){++l;++w;}if (c==' ')++w;}printf("characters = %d, words = %d, lines = %d",ch,w,l);}Keys : Number of words lines characters, no of lines, number of lines, number of words, number of characters, find number of words in c, c program to find number of words, read one line in c, read a line c.</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/615064156822670593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=615064156822670593&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/615064156822670593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/615064156822670593'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/04/no-of-wordslinescharacters.html' title='Number of words,lines,characters'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-8359356118932124573</id><published>2008-03-24T18:36:00.011+05:30</published><updated>2008-09-10T01:31:39.156+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Problems'/><title type='text'>Chess Board</title><summary type='text'>#include&lt;stdio.h&gt;/**********************************************************************************A chess board has coordinates (1,1) to (8,8). A Bishop is placed in one of the squares (m,n). Assuming the board to be empty, find the number of possible moves it can make on the board.eg:Input: 1, 1Output: 7**********************************************************************************/int main</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/8359356118932124573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=8359356118932124573&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8359356118932124573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/8359356118932124573'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/03/chess-board-has-coordinates-11-to-88.html' title='Chess Board'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-3757386717433546133</id><published>2008-02-14T17:56:00.011+05:30</published><updated>2008-09-09T17:12:08.782+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Sum of 10 numbers</title><summary type='text'>#include&lt;stdio.h&gt;int main(){int sum=1,b=2;while(b&lt;=10){  sum=sum+b;  b=b+1;}printf("sum=%d\n",sum);}-------------------------------------------------------Keys : basic c programming, c program code, C Programming, c programming arrays, c programming char, c programming functions, c programming static, compiling c program, hello world c program</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/3757386717433546133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=3757386717433546133&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3757386717433546133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/3757386717433546133'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/02/sum-of-10-numbers.html' title='Sum of 10 numbers'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-451809441603194347</id><published>2008-02-14T17:56:00.010+05:30</published><updated>2008-09-09T17:14:49.598+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Bitwise Operation</title><summary type='text'>#include&lt;stdio.h&gt;int main(){int n,i=0;scanf("%d",&amp;n);while(n!=0){   if((1&amp;n)!=0)       i++;   n&gt;&gt;1;}printf("%d",i);}</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/451809441603194347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=451809441603194347&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/451809441603194347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/451809441603194347'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/02/bitwise.html' title='Bitwise Operation'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-7956641279715522034</id><published>2008-02-14T17:54:00.012+05:30</published><updated>2008-09-09T17:12:08.787+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>No of lines....</title><summary type='text'>#include&lt;stdio.h&gt;int main(){int c=0,line=0; while (c!=-1)     {         c=getchar();         if (c=='\n')                line++;     }printf("no of lines = %d\n",line);}Keys : c program language, C Programming, c programming course, c programming define, c programming forum, c programming print, c programming test, programs in c, windows c programming</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/7956641279715522034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=7956641279715522034&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7956641279715522034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/7956641279715522034'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/02/no-of-lines.html' title='No of lines....'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7033938477432586004.post-811332933117522100</id><published>2008-02-14T17:54:00.010+05:30</published><updated>2008-09-09T17:12:08.790+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous Operations'/><title type='text'>Days</title><summary type='text'>#include&lt;stdio.h&gt;int main(){int d;printf("Enter days\n");scanf("%d",&amp;d);printf("%d years,%d months,%d days\n",d/365,(d%365)/30,(d%365)%30);} Keys : C Programming, c programming and, c programming class, c programming double, c programming extern, c programming scanf, c programming syntax, pic c programming, problem solving</summary><link rel='replies' type='application/atom+xml' href='http://c-pgms.blogspot.com/feeds/811332933117522100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7033938477432586004&amp;postID=811332933117522100&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/811332933117522100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7033938477432586004/posts/default/811332933117522100'/><link rel='alternate' type='text/html' href='http://c-pgms.blogspot.com/2008/02/days.html' title='Days'/><author><name>testbot</name><uri>http://www.blogger.com/profile/18041878406058872696</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://1.bp.blogspot.com/_dCuCrqCGb4w/Sv-2Q05I7BI/AAAAAAAAAD4/ivtyLVkY9_g/S220/jishnu.jpg'/></author><thr:total>0</thr:total></entry></feed>
