what is difference between array and structure?

Answer Posted / preet batth

array
1.there is no keyword
2.it has decleration only
structure
1.the keywod struct is used
2.it as decelration and definition

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are linked lists in c?

653


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

677


Can we declare variables anywhere in c?

591


How to implement a packet in C

2405


Where static variables are stored in memory in c?

531






What is the meaning of c in c language?

608


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

656


Do variables need to be initialized?

627


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2724


Compare array data type to pointer data type

607


If fflush wont work, what can I use to flush input?

629


What is clrscr in c?

686


How can I implement a delay, or time a users response, with sub-second resolution?

635


What is the c value paradox and how is it explained?

587


What are header files and what are its uses in C programming?

646