IS STRUCTURES CAN BE USED WITHIN AN ARRAY?

Answers were Sorted based on User's Feedback



IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / venugopal

YES ,THEY CAN BE,BECAUSE ARRAY CAN HOLD SIMILAR DATA
TYPED ONES,WE ARE USING ONLY STRUCTURE VARIABLES
THEMSELVES.IT WILL BE POSSIBLE.

Is This Answer Correct ?    5 Yes 0 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / e-mail

yes. structures can be used within an array. variables are
declared in an arrays in structures.

Is This Answer Correct ?    2 Yes 1 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / sathish

Yes... Sure...

Is This Answer Correct ?    1 Yes 0 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / shruti

yesss.

we do used structures within arrays..

struct student
{
char name[20];
int roll_no;
}s[10]

this is array of structures..

we use "."(dot) operator to access the element
s[i].name = ""
s[i].roll_no = ...

Is This Answer Correct ?    2 Yes 1 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / mathan

no

Is This Answer Correct ?    1 Yes 1 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / biranchi parida

generally in turbo c++ 3.0 to above version it can't
possible but possible if we declared float linking point
declaration
in such way globally after header file
float a,*b;
b=&a;
after this declaration structure can take array

Is This Answer Correct ?    0 Yes 0 No

IS STRUCTURES CAN BE USED WITHIN AN ARRAY?..

Answer / swamy s t

No. Because arrays are homogeneous datatype and
structures are heterogeneous datatype. So we cann't

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

1. Can we use the for loop this way? for(;i>5;) 2. What is the use of pointers? 3. what is array of pointer? 4. What is the difference between file and database? 5. Define data structure?

1 Answers  


how to print "hai" in c?

13 Answers   TCS,


difference between i++* and *++i

6 Answers   IBM,


struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?

1 Answers   Wipro,


What is the proper way of these job Tell me about there full work

0 Answers   EDS,






What is the most efficient way to count the number of bits which are set in a value?

4 Answers  


write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,


what is the value of b if a=5; b=++a + ++a

31 Answers   Infosys, TCS, Tech Mahindra,


what is the difference between #include<> and #include”…”?

5 Answers  


How to write a code for reverse of string without using string functions?

0 Answers   TCS,


What is conio h in c?

0 Answers  


What is enumerated data type in c?

0 Answers  


Categories