what is difference between array and structure?

Answer Posted / sajid ali khan

ARRAYS: -
An array may contain a number of items all of the SAME TYPE,
including user-defined types such as structures (see above).
Structure: -
In the C programming language, a structure may contain
MULTIPLE DATA TYPES, also including arrays of those types,
and the structure becomes a USER-DEFINED type.

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I recover the file name given an open stream or file descriptor?

593


What is meant by errors and debugging?

646


How do you define structure?

564


Is it better to use a macro or a function?

654


Why c is called top down?

626






a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1587


What is a pointer on a pointer in c programming language?

621


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

656


How can I make sure that my program is the only one accessing a file?

678


in linking some of os executables are linking name some of them

1649


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1674


What is the importance of c in your views?

588


Explain modulus operator.

595


What is d'n in c?

631


In a switch statement, explain what will happen if a break statement is omitted?

636