Simple C Programming Structure Examples

Simple C Programming Structure Examples

In this Post We Will Explain About is Simple C Programming Structure Examples With Example and Demo.Welcome on Live24u.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Passing Structure to function in C – Simple C programs Example

In this post we will show you Best way to implement Structure in C programming, hear for Explain the Basic Structure of a C Program with an Example with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Also Read :   Top Ten Most famous Cities in India




Structures – C Programming

A structure is a collection of one or more variables(multiple datatypes), possibly of more or different types, one type of the grouped together under a group name single name for some convenient handling.

#include<stdio.h>
#include<conio.h>

struct product
{
	int pno;
	char productName;//It's Pointer Within Structure
	unsigned int rate :10; //It's Bitfield
	struct item  //Structure Within Structure
	{
		int icode;
		char iname[20]; //Array Within Structure
		int qty;
	}itm[3]; //Array of Structure
	int tot;
}*i // Pointer to Structure 

1. Declaring a Structure


struct Students 
{ 
    char name; 
    float age; 
    int info; 
}; 

struct Students b1, b2, b3 ; 

//used

struct Students 
{ 
    char name[10]; 
    float age; 
    int info; 
};
 
struct Students b1 = { "Laravel", 130.00, 550 } ; 
struct Students b2 = { "PHP", 150.80, 800 } ;

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example

Also Read :   Facebook Graph API Search Multiple Parameters Queries




Example

I hope you have Got What is Structures – C Programming And how it works.I would Like to have FeedBack From My Blog(live24u.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(live24u.com) Are Most Always Welcome.