#include<stdio.h>
#include<conio.h>
struct student
{
int rno;
char
name[20];
int age;
};
//arrays of structure
struct student s1[2];
void main()
{
int i;
clrscr();
for(i=0;i<=1;i++)
{
printf("\n\t
Enter roll number ");
scanf("%d",&s1[i].rno);
printf("\n\t
Enter name ");
scanf("%s",&s1[i].name);
printf("\n\t
Enter age ");
scanf("%d",&s1[i].age);
}
printf("\n
Student Details");
for(i=0;i<=1;i++)
{
printf("\nRoll Number=
%d",s1[i].rno);
printf("\n
Name = %s",s1[i].name);
printf("\n
Age = %d",s1[i].age);
}
getch();
}
|
| Output
|
Computer Science :: 11th/12th, Computer Engineering :: Degree/Diploma, Coding Concept ( C, C++ & JAVA Programming, JDBC Concept, DBMS - SQL Concept, Data Structure, Communication & Network Concept.
ARRAYS OF STRUCTURE
Subscribe to:
Posts (Atom)
Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II
Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II : 1) Which of the following is the extension of Not...
-
COMPUTER TERMINOLOGY 1) TCP/IP - Transmission Control Protocol/ Internet Protocol. 2) HTTP...
-
Programmingway@Eklavya Technosys!: PHP Exercise Solutions : PHP Exercise Solutions 1) Fill in the blanks a) The extension of a PHP cod...
-
https://makecode.com/_3VxaMo6c3YPp Code 1) What is Make Code Arcade? Answer: Make Code Arcade is a Block based coding. 2) Writ...
-
EduTech Digital Study Contents | Ashok Sir Class - 09 IT 402 Exercises Questions Class - 10 | IIT | Introductory to IIT | ...
-
Check whether the number is negative or positive after taking a number as input from the user. TextWindow . WriteLine ( "Ente...

No comments:
Post a Comment