Monday, January 24, 2011

program to store the information about students in file and retrieve information arranging in alphabetical order


#include<stdio.h>
#include<string.h>
int main()
{
    struct student
    {
        char name[20],address[20],phone[15];
        int roll;
    }s[20];
    int i,j,n;
    FILE *fp;

Read more!

Wednesday, January 19, 2011

Program to arrange the given names in ascending order

#include<stdio.h>
#include<string.h>
int main()
{
    int i,j,n;
    char name[15][20],temp[20];
    printf("Enter number of students:");
    scanf("%d",&n);

Read more!