what is data structure.in linear and non linear data
structures which one is better?Explain
Answers were Sorted based on User's Feedback
Answer / ashi
A data structure is arrangement of data in a computer's
memory even disk storage linear data is better than non liner
| Is This Answer Correct ? | 15 Yes | 3 No |
Answer / rama krishna sidhartha
A data structure is a collection or organization of the data
in computer memory
(or)
A data structure is arrangement of data in a computer's
memory or even disk storage.
In linear and non-linear data structures, linear data
structure is better than non linear data structure. Because
in linear data structure, the elements of the data structure
are represented in the sequence. Whereas, in non linear data
structure is not in sequence.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / some guy
++linear and non-linear data structures have their own
significance ......which is better then the other is depend
on the application of data structure ...
for eg.
linear search vs. BST(binary search tree)
| Is This Answer Correct ? | 4 Yes | 1 No |
What is meant by type casting?
What does static mean in c?
What is %s and %d in c?
What is the use of structure padding in c?
What is #pragma statements?
Explain bitwise shift operators?
Why is c platform dependent?
What is c language in simple words?
There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.
Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?
2 Answers ME, Synfusion, Wipro,
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
What is the memory allocated by the following definition ? int (*x)[10];