Structure as function arguments in C

C allows programmers to pass a single or entire structure information to or from a function. A structure information can be passed as a function arguments. The structure variable may be passed as a value or reference. The function will return the value by using the return statement.

Source Code

//Structure  as function arguments in C Programming
struct student
    char *name;
    int age;
    float per;
void display(struct student o)
    printf("\nName        : %s",;
    printf("\nAge         : %d",o.age);
    printf("\nPercent     : %f",o.per);
int main()
    struct student o={"RAM",25,75.5};
    return 0;
To download raw file Click Here

List of Programs

Sample Programs

Switch Case in C

Conditional Operators in C

Goto Statement in C

While Loop Example Programs

Looping Statements in C

For Loop Example Programs

Array Examples in C

One Dimensional Array

Two Dimensional Array in C

String Example Programs in C

Functions Example Programs in C

Learn All in Tamil © Designed & Developed By Tutor Joes