What is a C array and illustrate the how is it different from a list.
Answer / rutuja pawar
Suppose,
int arr[5]={10,20,30,40,50};
I want to add value at index first 60,so array will change like that
arr[5]={10,60,20,30,40,50};
for this output I have to shift the array element.
but in List I can insert directly and delete directly.
that means:
1) In Array: Insertion and deletion is not faster , but Accessing time is less
2)In List: Insertion and deletion is faster but accessing time is more.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is void pointer?
What is nested structure with example?
What is an array in c?
If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???
Explain the concept of "dangling pointers" in C.
how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"
read an array and search an element
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.
What are volatile variables?
Explain how to reverse singly link list.
Write a program in c to input a 5 digit number and print it in words.
Why should I prototype a function?