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

wt is d full form of c

6 Answers   TCS, Wipro,


Why is it that not all header files are declared in every C program?

0 Answers  


if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')

23 Answers  


what is difference between procedural language and functional language ?

4 Answers   Wipro,


explain what is fifo?

0 Answers  






A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

0 Answers  


What do you understand by friend-functions? How are they used?

0 Answers   iNautix,


How can I return multiple values from a function?

6 Answers  


Write a C program to check a number even or odd, without using any relational, arithmetic operator and any loops.

1 Answers  


Can I initialize unions?

0 Answers  


In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }

1 Answers  


Why malloc is faster than calloc?

0 Answers  


Categories