IT. Expert System.

C

struct


Used in creating a structure which provide means to group different types of variable under one name for easier handling.

Syntax:
struct struct_name{
data_type1 variable1;
data_type1 variable1;
data_type1 variable1;
};


Example:

#include 
#include 

struct student 
{
           int id;
           char name[20];
           float percentage;
};

int main() 
{
           struct student record = {0}; //Initializing to null

           record.id=1;
           strcpy(record.name, "Raju");
           record.percentage = 86.5;

           printf(" Id is: %d \n", record.id);
           printf(" Name is: %s \n", record.name);
           printf(" Percentage is: %f \n", record.percentage);
           return 0;
}
Output:

Id is: 1
Name is: Raju
Percentage is: 86.500000


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 260 / 158730215. Delta: 0.00306 с