home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_07 / 388.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  713KB  |  2550x3300
Labels: book | poster | reckoner
OCR: 388 Chapter Structuring the Data struct 6 char al; int The two structures declarations are very similar. Only the tag differs. Does your compiler recognize these similarities? ? Is it possible to assign variable of type struct a toa variable of type ruct Is it t pos- sible with a type cast? Write a short program to answer these questions bv Discovery Consider the following two structure declarations: ruc struct float float int Write a program that declares variables of type struct X and struct initializes one of the variables and attempts to assign the contents of the initialized structure variable to the other vari- ables Note that this creates an error condition since the two vari- ables have different types. How this handled by your system? If there are compile-time errors, add a type c ...