Download as PDF, PPTX

![Program - 1
#include<stdio.h> getch();
#include<conio.h> }
void main()
{
char name[3];
float price[3],i;
clrscr();
printf("Enter names, price of 3 booksn");
for(i=0;i<=2;i++)
scanf("n%c %f",&name[i],&price[i]);
printf("nAnd this is what you have enteredn");
for(i=0;i<=2;i++)
printf("%c %fn",name[i],price[i]);
Vinay Arora
CSED](https://image.slidesharecdn.com/8-structures-120507111658-phpapp02/75/C-Prog-Structures-2-2048.jpg)





The document discusses two C programming examples that use structures. The first example stores the name and price of 3 books in arrays and prints the input. The second example defines a book structure with name and price fields, declares 3 structure variables, takes input for each book, and prints the stored name and price for each book. Both examples demonstrate using structures to organize related data in C programming.

![Program - 1
#include<stdio.h> getch();
#include<conio.h> }
void main()
{
char name[3];
float price[3],i;
clrscr();
printf("Enter names, price of 3 booksn");
for(i=0;i<=2;i++)
scanf("n%c %f",&name[i],&price[i]);
printf("nAnd this is what you have enteredn");
for(i=0;i<=2;i++)
printf("%c %fn",name[i],price[i]);
Vinay Arora
CSED](https://image.slidesharecdn.com/8-structures-120507111658-phpapp02/75/C-Prog-Structures-2-2048.jpg)



