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 |
int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?
Do you know the difference between malloc() and calloc() function?
how to go with this?
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
what is the difference between. system call and library function?
Tell me about low level programming languages.
write a program to print infinte number
What is line in c preprocessor?
How to reverse a string using a recursive function, without swapping or using an extra memory?
31 Answers Cisco, Mind Tree, Motorola, Ophio, Sony, TCS, Wipro,
Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
1. Can we use the for loop this way? for(;i>5;) 2. What is the use of pointers? 3. what is array of pointer? 4. What is the difference between file and database? 5. Define data structure?
Explain why c is faster than c++?