"Structure of Structs in c" Code Answer's

You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "Structure of Structs in c" answered properly. Developers are finding an appropriate answer about Structure of Structs in c related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like Structure of Structs in c. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on Structure of Structs in c. 

how to put a structure into a structure in c

By Gleaming GoshawkGleaming Goshawk on Mar 02, 2020
#include <stdio.h>
#include <string.h>
 
struct student_college_detail
{
    int college_id;
    char college_name[50];
};
 
struct student_detail 
{
    int id;
    char name[20];
    float percentage;
    // structure within structure
    struct student_college_detail clg_data;
}stu_data;
 
int main() 
{
    struct student_detail stu_data = {1, "Raju", 90.5, 71145,
                                       "Anna University"};
    printf(" Id is: %d \n", stu_data.id);
    printf(" Name is: %s \n", stu_data.name);
    printf(" Percentage is: %f \n\n", stu_data.percentage);
 
    printf(" College Id is: %d \n", 
                    stu_data.clg_data.college_id);
    printf(" College Name is: %s \n", 
                    stu_data.clg_data.college_name);
    return 0;
}

Source: fresh2refresh.com

Add Comment

1

Structure of Structs in c

By Tender TapirTender Tapir on Oct 16, 2020
The basic structure

Add Comment

0

Structure of Structs in c

By Tender TapirTender Tapir on Oct 16, 2020
struct [structure_tag]
{
    //member variable 1
    //member variable 2
    //member variable 3
    ...
}[structure_variables];
  

Add Comment

-1

All those coders who are working on the Whatever based application and are stuck on Structure of Structs in c can get a collection of related answers to their query. Programmers need to enter their query on Structure of Structs in c related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about Structure of Structs in c for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of Structure of Structs in c while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "Structure of Structs in c". Visit this developer's friendly online web community, CodeProZone, and get your queries like Structure of Structs in c resolved professionally and stay updated to the latest Whatever updates. 

Whatever answers related to "Structure of Structs in c"

View All Whatever queries

Whatever queries related to "Structure of Structs in c"

Browse Other Code Languages

CodeProZone