What is difference between array and structure in c?



What is difference between array and structure in c?..

Answer / Vabhave Kumar Singh

An array is a collection of elements of the same data type, while a structure is a user-defined data type consisting of one or more variables of different data types. Arrays are accessed using an index, whereas structures can be accessed by member name.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain the use of #pragma exit?

1 Answers  


how to print 212 as Twohundreds twelve plz provide me ans soon

1 Answers  


Define macros.

1 Answers   Tech Mahindra,


why java is called as a purely oops language.

3 Answers   TVS,


What is use of pointer?

1 Answers  


Explain the use of keyword 'register' with respect to variables.

1 Answers  


WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

25 Answers  


What are 'near' and 'far' pointers?

1 Answers  


how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48

1 Answers  


what is difference between strcmp & palindrome?

3 Answers  


write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised

3 Answers  


What are the different categories of functions in c?

1 Answers  


Categories