what is difference between array and structure?

Answer Posted / siddharth kothari

An array behaves like a built-in data type. All we have to
do is to declare an array variable and use it. But in the
case of a structure, first we have to design and declare a
data structure before the variables of that type are
declared and used

Is This Answer Correct ?    44 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various types of control structures in programming?

807


How do I copy files?

807


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

2064


What type of function is main ()?

807


What is c token?

826


What is the size of structure pointer in c?

811


What tq means in chat?

837


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

840


How is null defined in c?

860


Can you please explain the scope of static variables?

796


What is new line escape sequence?

1027


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3269


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4398


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

828


What is function and its example?

896