which of 'arrays' or 'pointers' are faster?

Answer Posted / s

i think pointers are faster if we talk in terms of element
addition and deletion,the priomary req..

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain main function in c?

630


How do we make a global variable accessible across files? Explain the extern keyword?

1426


Explain how do you search data in a data file using random access method?

700


What are the similarities between c and c++?

605


Difference between constant pointer and pointer to a constant.

616






Difference between malloc() and calloc() function?

659


What is strcmp in c?

603


What do you mean by a sequential access file?

631


What is the significance of c program algorithms?

685


What is the use of ?

628


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1622


What is the meaning of typedef struct in c?

600


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1602


What is the use of ?: Operator?

671


What does it mean when the linker says that _end is undefined?

638