+ 2

How to structure use of programming coding

9th Feb 2019, 7:06 AM
Charulatha
Charulatha - avatar
4 Réponses
+ 3
Structure is used to store data of different datatypes whereas arrays are used to store data of similar datatypes. Ex: struct { Int, Char, Long, double }; Structures are most useful with different data structures.
9th Feb 2019, 10:12 AM
Akshay Madrikar
Akshay Madrikar - avatar
+ 2
Could you please clarify your question?
9th Feb 2019, 8:17 AM
Sonic
Sonic - avatar
+ 1
Your answer is good
3rd Oct 2019, 4:31 AM
kabonge muhamadi
kabonge muhamadi - avatar
+ 1
Example like To store student details of different data types Struct Student { int rno; Char name[10]; Char last_name[20]; Float percentage; }; Void main() { Scanf(%d,%c,%c,%f,&rno,&name,&last_name,&percentage); Printf("roll no:%d,name:%c,last_name:%c,percentage:%f",rno,name,last_name,percentage); }
15th Dec 2020, 5:02 PM
Ak77
Ak77 - avatar