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

how to implement stack operation using singly linked list

2 Answers  


What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }

5 Answers   Amazon, Qualcomm,


Is main a keyword in c?

0 Answers  


What does main () mean in c?

0 Answers  


Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”

5 Answers   Mind Tree,






There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   HCL, iGate,


What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;

12 Answers   TCS,


what is the difference between #include<stdio.h> and #include"stdio.h" ?

6 Answers   TCS,


What is an expression?

0 Answers  


regarding pointers concept

0 Answers  


main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????

1 Answers  


What is the difference between char a[] = "string"; and char *p = "string"; ?

14 Answers   Adobe, Honeywell, TCS,


Categories