please help

#include<stdio.h>
#include<stdlib.h>

struct node
{
    float coef;
    int expo;
    struct node *link;
};

struct node *create(struct node *);
struct node *insert_s(struct node *,float,int);
struct node *insert(struct node *,float,int);
void display(struct node *ptr);
void poly_add(struct node *,struct node *);
void poly_mult(struct node *,struct node *);
main( )
{
    struct node *start1=NULL,*start2=NULL;

    printf("Enter polynomial 1 :\n");
    start1=create(start1);

    printf("Enter polynomial 2 :\n");
    start2=create(start2);

    poly_add(start1, start2);
    poly_mult(start1, start2);
}/*End of main()*/

struct node *create(struct node *start)
{
    int i,n,ex;
    float co;
    printf("Enter the number of terms : ");
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
        printf("Enter coeficient for term %d : ",i);
        scanf("%f",&co);
        printf("Enter exponent for term %d : ",i);
        scanf("%d",&ex);
        start=insert_s(start,co,ex);
    }
    return start;
}/*End of create()*/
struct node *insert_s(struct node *start,float co,int ex)
{
    struct node *ptr,*tmp;
    tmp=(struct node *)malloc(sizeof(struct node));
    tmp->coef=co;
    tmp->expo=ex;
    /*list empty or exp greater than first one */
    if(start==NULL || ex > start->expo)
    {
        tmp->link=start;
        start=tmp;
    }
    else
    {
        ptr=start;
        while(ptr->link!=NULL && ptr->link->expo >= ex)
            ptr=ptr->link;
        tmp->link=ptr->link;
        ptr->link=tmp;
    }
    return start;
}/*End of insert()*/

struct node *insert(struct node *start,float co,int ex)
{
    struct node *ptr,*tmp;
    tmp=(struct node *)malloc(sizeof(struct node));
    tmp->coef=co;
    tmp->expo=ex;
    /*If list is empty*/
    if(start==NULL)
    {
        tmp->link=start;
        start=tmp;
    }
    else    /*Insert at the end of the list*/
    {
        ptr=start;
        while(ptr->link!=NULL)
            ptr=ptr->link;
        tmp->link=ptr->link;
        ptr->link=tmp;
    }
    return start;
}/*End of insert()*/

void display(struct node *ptr)
{
    if(ptr==NULL)
    {
        printf("Zero polynomial\n");
        return;
    }
    while(ptr!=NULL)
    {
        printf("(%.1fx^%d)", ptr->coef,ptr->expo);
        ptr=ptr->link;
        if(ptr!=NULL)
            printf(" + ");
        else
            printf("\n");
    }
}/*End of display()*/
void poly_add(struct node *p1,struct node *p2)
{
    struct node *start3;
    start3=NULL;

    while(p1!=NULL && p2!=NULL)
    {
        if(p1->expo ...
struct node {
int data;
struct node **next;
};

can we use like this???

ur trying to swap right???

WaltP commented: No, he's exchanging. Read the thread AND the code he posted. -3
#include <stdio.h>
#include <stdlib.h>
void main()
{
    int a,b;
    printf("enter two numbers: ");
    scanf("%d%d",&a,&b);
    printf("before swapping....\n");
    printf("A=%d B=%d",a,b);
    a=a+b;
    b=a-b;
    a=a-b;
    printf("after swapping...\n");
    printf("A=%d B=%d",a,b);
}

here try this man ull get perfect output

#include <stdio.h>
#include <stdlib.h>
struct student
{
    char name[15];
    long int regno;
struct employee
{
    char name1;
    int rollno;
    struct student s1
}s1;

}s2;
void main()
{
    struct student s1={"rohinn",2345}
    prntf("%s",s2.s1.name);

}

error at line 12

can any one please elaborate why template is being used i dont understand in most of the google page they say that we can reuse the code but even in inheritance we do that .why templates?????

#include <stdio.h>
#include <stdlib.h>

void main()
{
    char s[40];
    int i,j,k=0,c=0;
    printf("enter the string: ");
    fgets(s,sizeof(s),stdin);
    for(i=0;s[i]!='\0';i++)
    {
        if(s[i]==32)
        {
            c++;
        }
    }
    if(c%2==0)
    {
        printf("there is no middle word");
    }
    else{
        j=c/2;

        for(i=0;s[i]!='\0';i++)
        {
            if(s[i]==32)
            {
                k++;
                if(j==k)
                {
                    i++;
                    while(s[i]!=32)
                    {
                        printf("%c",s[i]);
                        i++;
                    }
                }
            }
        }
    }

}

output shoulbe like this
i love india
where middle word is love
so i have to print middle word
it shows 0 errors but output is wrong

#include <stdio.h>
#include <stdlib.h>

void main()
{
char x[10],y[10];
int i,j,k,flag=0;
printf("enter the string: ");
fgets(x,sizof(x),stdin);
for(i=0;x[i]!='\0';i++)
for(j=0,k=i;x[k]!='\0';j++,k--)
{
    y[j]=x[k];
    }
    if(x==y)
    {
        printf("the string is palindrome");
    }
    else
    {
        printf("not palindrome");
    }
}

hey deceptikon its not like that i didnt read ur replies bcoz some times its difficult to follow ur answers(it means i didnt understand what ur replying).i dont particularly mention u .and iam bit shy to ask the questions regularly

no nitin1 actually india is really below the curve bcoz in most of the colleges r using turbo c .so surely everyone will make us embrassing

but i dont get correct output like this

ooh so thanks deceptikon i got the correct output so ur solved threads wil be going to be 162

#include <iostream.h>
void main()
{
int d;
int i=0,n,j,b[100];
cout<<"\n Press 1 for Decimal to Binary converstion";
cout<<"\n press 2 for Decimal to Octal converstion ";
cout<<"\n press 3 for Decimal to Hexadecimal converstion";
cout<<"\n\nEnter your choice: ";
cin>>d;
switch(d)
{
case 1:
cout<<"\nEnter decimal number: ";
cin>>n;
while (n>0)
{
b[i]=n%2;
n=n/2;
i++;
}
cout<<"\nBinary is: ";
j=i-1;
for (i=j;j>=0;j--)
{
cout<<b[j];
}
break;
case 2:
cout<<"\nEnter decimal number: ";
cin>>n;
while (n>0)
{
b[i]=n%8;
n=n/8;
i++;
}
cout<<"\nOctal is: ";
j=i-1;
for (i=j;j>=0;j--)
{
cout<<b[j];
}

break;
case 3:
cout<<"\nEnter decimal number: ";
cin>>n;
while (n>0)
{
b[i]=n%16;
n=n/16;
i++;
}
cout<<"\nHexadecimal is:";
j=i-1;
for (i=j;j>=0;j--)
{
cout<<b[j];
if(b[j]<10)
{
cout<<b[j];
}
else
{
switch(b[j])
{
case 10:
cout<<"A";
break;
case 11:
cout<<"B";
break;
case 12:
cout<<"C";
break;
case 13:
cout<<"D";
break;
case 14:
cout<<"E";
break;
case 15:
cout<<"F";
break;
}
}
}

}

}

it produces the following error "main must retrun int"please see what is the problem iam using code blocks 8 with mingw

create a new class which contains just one TopLayoutCOntainer (JFrame, JDialog...) in type to the main method and inside actionPerformed

i dont understand what u said sir