Create a student database storing the roll number, name, class etc. and sort by name

Program to create student database storing the roll number, name, class etc. and sort by name

student database storing roll number

Output

Insert information of students:

Name enter: adam
Enter roll number: 45
Enter marks: 456

Displaying Information
Name: adam
Roll: 45
Marks: 456

#include

This is a preprocessor command that includes standard input output header file(stdio.h) from the C library before compiling a C program.

int main()

This is the main function from where execution of any C program begins

{

This indicates the beginning of the main functions

/*comments*/

whatever is given inside the command “/* */” in any C program, won’t be considered for compilation and execution.

printf(“”)

printf commmand print the output on to the screen.

getch();

This command waits for any character intput from keyword


return 0;

This command terminates C program (main function) and returns 0.

}

This indicates the end of the main function.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *