#include
//structure declaration
struct student{
int rollno;
float marks;
};
int display(int roll, float mrk){
printf("\nRoll no : %d\tMarks : %.2f\n\n",roll,mrk);
}
int main(){
struct student s;
s.rollno=123;
s.marks=95.5;
display(s.rollno,s.marks);
return 0;
}
No comments:
Post a Comment