/*WAP to Usage of an array of structures */
#include<stdio.h> #include<conio.h> main( ) { struct book { char name ; float price ; int pages ; } ; struct book b[100] ; int i ; for ( i = 0 ; i <= 99 ; i++ ) { printf ( "\nEnter name, price and pages " ) ; scanf ( "%c %f %d", &b[i].name, &b[i].price, &b[i].pages ) ; } for ( i = 0 ; i <= 99 ; i++ ) printf ( "\n%c %f %d", b[i].name, b[i].price, b[i].pages ) ; getch(); } linkfloat( ) { float a = 0, *b ; b = &a ; /* cause emulator to be linked */ a = *b ; /* suppress the warning - variable not used */ }