Technical Interview Questions and Answers :: Aricent
- Select All
- C++
- SQL
- Networking
- HR Question in TR
- Java
- C
- Data Structure
- DBMS
- Soft. Engineering
41 / 47
An array is a contiguous chunk of memory with a fixed size whereas a list is typically implemented as individual elements linked to each other via pointers and does not have a fixed size. Once an array is initialized, it cannot be resized, and it uses a fixed amount of memory regardless of how much stuff you put in it. Since a list is a collection of individual chunks of memory that are dynamically allocated, the space required to store a list is directly related to the number of elements in it.
42 / 47
#include <stdio.h>
int main(){
if(printf("q4 Interview")){
}
}
note that printf returns the value printed to stdout so the above program prints q4 interview
43 / 47
No Discussion on this question yet!
44 / 47
No Discussion on this question yet!
45 / 47
No Discussion on this question yet!
46 / 47
No Discussion on this question yet!
47 / 47
No Discussion on this question yet!