Sunday, June 17, 2012

69. PROGRAM TO PRINT THE ASSIGNED VALUES TO MEMBERS OF THE FUNCTION


//WAP TO PRINT THE ASSIGNED VALUES TO MEMBERS OF THE FUNCTION
 #include<stdio.h>
 #include<conio.h>
 struct abc
 {
  int pages;
  char *author;
  float price;
 }book;
 void main()
 {
  book.pages=300;
  book.author="ABHISHEK WADHWA";
  book.price=501.50;
  clrscr();
  printf("\n\nPAGES=%d",book.pages);
  printf("\n\nAUTHOR:%s",book.author);
  printf("\n\nPRICE=%f",book.price);
  getch();
 }
/**************************************************************************
OUTPUT
 **************************************************************************


 PAGES=300

 AUTHOR:ABHISHEK WADHWA

 PRICE=501.500000
 */




                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               

No comments:

Post a Comment

Programming the Whole World!