what is difference between array and structure?

Answer Posted / ajeet

Array is the collection of homogeneous data elements
whereas Structure is the collection of heterogeneous
data types elements.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does *p++ do? What does it point to?

604


Explain #pragma statements.

590


What are the general description for loop statement and available loop types in c?

670


What is the difference between malloc calloc and realloc in c?

634


How is pointer initialized in c?

573






What is the value of a[3] if integer a[] = {5,4,3,2,1}?

656


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1245


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

639


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

642


What is the use of sizeof () in c?

541


How many levels deep can include files be nested?

638


Can you return null in c?

584


What is the stack in c?

707


What is an arrays?

642


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

4163