COPY STRUCTURE

 

you can assign one structure data into another

#include<stdio.h>

int main()

{

struct book

{

  char name;

  float price;

  int pages;

};

  struct book b1={‘b’, 120.00, 550};

  struct book b2;

  b2=b1;

  return 0;

}

 Modify value

struct book b1={“hello”, 120.00, 550};

strcpy(b1.name, “vikas”);

b1.price=120.00;

b1.pages=550;

 Use of structure

1.changing the size of the cursor.

2.cleaning the content of screen.