Discuss about structures and functions With example program oneloops 12:03 Add Comment LAB PROGRAMS, QUESTION WITH ANSWER, STUDY MATERIALS, TEACHING NOTES A structure is a bit more complicated than a single value, so it is not surprising that ancient C implementations do not allow a structure... Read More
Write a program to illustrate the comparison of structure variables. oneloops 12:01 Add Comment LAB PROGRAMS, QUESTION WITH ANSWER, STUDY MATERIALS Struct class { Int number; Char name[20]; Float marks; }; Main() { Int x; Struct class std1={111,”rao”72.50}; ... Read More
brief explain about structure pointers with With example program oneloops 12:00 Add Comment LAB PROGRAMS, QUESTION WITH ANSWER, STUDY MATERIALS, TEACHING NOTES process the structure using a structure pointer Program struct student \\ A { char name[30]; \\ B float marks; \... Read More
With example program written in C language describe the term Union. oneloops 11:59 Add Comment LAB PROGRAMS, QUESTION WITH ANSWER, STUDY MATERIALS, TEACHING NOTES Comparison of Two Strings"strcmp" compares the string "s1" to the string "s2". Both strings must be terminate... Read More
Explain about Initializing Structures with example. oneloops 11:57 Add Comment QUESTION WITH ANSWER, STUDY MATERIALS, TEACHING NOTES if the structure object has automatic storage class, then its members have indeterminate initial values. example. Song_t mySong = { ... Read More
When a structure is a member of another structure it is called a nested structure. oneloops 11:56 Add Comment LAB PROGRAMS, QUESTION WITH ANSWER, STUDY MATERIALS, TEACHING NOTES Struct address \\ A { plot char [30], struc char[30]; city char[30] } struct student \\ B { name char[... Read More
Write about “Bit-Fields” oneloops 11:55 Add Comment QUESTION WITH ANSWER, STUDY MATERIALS, TEACHING NOTES A bit-field is an integer variable that consists of a specified number of bits. If you declare several small bit-fields in succession, t... Read More
Define Union oneloops 11:53 Add Comment QUESTION WITH ANSWER, STUDY MATERIALS, TEACHING NOTES union is formally the same as that of a structure, except for the keyword union in place of struct : union [ tag_name ] { membe... Read More