Array of Structures in C Part 2 | C Language Tutorial

preview_player
Показать описание
Array of Structures in

C Language Tutorial Videos | Mr. Srinivas

? Visit Our Website for Classroom Training:
? For Online Training:
--------------------------

? About NareshIT:

"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA ,Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA,Hyderabad, Chennai and Vijayawada,Bangalore India which provides online training across all the locations

--------------------------

? Our Online Training Features:
1.Training with Real-Time Experts
2.Industry Specific Scenario’s
3.Flexible Timings
4.Soft Copy of Material
5. Share Videos of each and every session.

--------------------------

+1404-232-9879 or India: +918179191999

** Check The Below Links**
? Follow us on Linkedin:
Рекомендации по теме
Комментарии
Автор

Clear explanation with nice pronunciation ...thank u so...much sir and student like me needs a lecturer like u sir for clear concept

lalithasingampalli
Автор

Sir, can you provide a full programme on this like how to read and display any data. Because the variable names gets little complicated in the end. Otherwise conceptually the explanation is amazing. Just need a practical approach!

sahelikantha
Автор

THANKS FOR YOUR CONTRIBUTION ON MY C COURSES YOUR VIDEOS ARE MY COMMON REFERENCE IN MY STUDY. YOU ARE AMAZING!

fithawighide
Автор

Just watched 1st part, now n second. And I wanna say that you are always on spot. Slow and very good explanation. Well done keep going with this. Thank you and congrats from Bulgaria, Europe!!

НиколаВълчинов
Автор

Sir, y don't u explain any program
U r very much elaborating memory location
...for loop in arrays in structure
Give any program and explain

lovelyak
Автор

Very helpful great explanation with clear examples

shubhampatidar
Автор

Sir please explain by giving any programme as example

akhil
Автор

Very very thanks for u r c-programming videoes sir.it is very clear and easy to understand by your teachinh

sandeepsandy
Автор

Sir u explain really well
Want few more examples

rudhirad.r
Автор

Simple explanation..really helped to understand the topic..Tq sirr

soniyajinu
Автор

Array of structures takes contiguous memory locations. Can you please revisit the video?

kanchiseekers
Автор

Tq sir your explanation is very clearly

vijayvijay-bcvh
Автор

sir I am from Andra Pradesh.
I am facing problem with one of my program.


#include <stdio.h>
struct student
{
char sname[20];
int srollno;
int smarks[3];
};

int main ()
{
struct student e[3];
int i, j;
for (i=0;i<=2;i++)
{
scanf ("%s", e[i].sname);
scanf ("%d", e[i].srollno);
for (j=0;j<=2;j++)
{
scanf ("%d", e[i].smarks[j]);
}
}
}


it is showing no erroe but it is taking only two inputs.
please help me sir.

saisandeepchenna
Автор

Concept with coding that writes and reads values of members of first structure index plus member array:
#include <stdio.h>

void main(){

struct test {
short a;
char b;
int y[2];
}x[2], *y;

y = x;

for(int a = 0; a < 2; a++){
for(int b = 0; b < 2; b++){
printf("Type val for struct x[%d] member a: ", a);
scanf("%d", &y->a);
printf("Type val for struct x[%d] member b: ", a);
scanf("%s", &y->b);
for(int c = 0; c < 2; c++){
printf("Type in val for x[%d] array y[0]: ", a);
scanf("%d", y->y);
for(int d = 0; d < 2; d++){
printf("Type in val for x[%d] array y[1]: ", a);
scanf("%d", y->y + 1);
break;
}
break;
}
break;
}
y = y + 1;
}

y = x;

for(int a = 0; a < 2; a++){
for(int b = 0; b < 2; b++){
printf("Val for struct x[%d] member a is: %d\n", a, y->a);
printf("Val for struct x[%d] member b is: %c\n", a, y->b);
for(int c = 0; c < 2; c++){
printf("Val for x[%d] array member y[0] is: %d\n", a, y->y[0]);
for(int d = 0; d < 2; d++){
printf("Val for x[%d] array member y[1] is: %d\n", a, y->y[1]);
break;
}
break;
}
break;
}
y = y + 1;
}
}

lcarltbmx
Автор

Sir explain the programs with computer

ramyajami
Автор

Explain briefly by using inner and outer for loops

divakarreddy
Автор

hi sir
can u pls give me the code for this example

siddharthp
Автор

Can u please tell me why the char array and int array are treated differently....I mean why it cant Store pointer to char array like int array

SravaniChandRayudu
Автор

Sir can you please upload the Dangling Concept vedio, because i could not find that concept from your vedios

g.p.shilpa
Автор

how can we store full name in structure ???
if i use gets my program is nor running properly?

#include<stdio.h>
#include<conio.h>
main()
{
int i, n;
struct student
{
int rollno;
char name[30];
int mobile;
};
struct student std[100];
clrscr();
printf("enter the no of student detail you want to add\n");
scanf("%d", &n);
for(i=0;i<n;i++)
{
printf("enter the %d student detail\n", i+1);
printf("enter the student roll no:\n");
scanf("%d", &std[i].rollno);
printf("enter the studnt name:\n");
scanf("%s", &std[i].name);
printf("enter the student mobile:\n");
scanf("%d", &std[i].mobile);
};
for(i=0;i<n;i++)
{
printf("the name is %s and roll no is %d and mobile no is %d\n", std[i].name, std[i].rollno, std[i].mobile);

};


getch();
}

Bunnyofficial-uj
welcome to shbcf.ru