#include<stdio.h>
struct anik
{
int age;
float salary;
};
int main()
{
struct anik std1 = {26, 30000.50}, std2;
std2 = std1;
printf("First Structure : \n");
printf("Age : %d\n", std1.age);
printf("Salary : %0.2f\n", std1.salary);
printf("\nSecond Structure : \n");
printf("Age : %d\n", std2.age);
printf("Salary : %0.2f\n", std2.salary);
return 0;
}
struct anik
{
int age;
float salary;
};
int main()
{
struct anik std1 = {26, 30000.50}, std2;
std2 = std1;
printf("First Structure : \n");
printf("Age : %d\n", std1.age);
printf("Salary : %0.2f\n", std1.salary);
printf("\nSecond Structure : \n");
printf("Age : %d\n", std2.age);
printf("Salary : %0.2f\n", std2.salary);
return 0;
}
Comments
Post a Comment