What is the real difference between arrays and pointers?
Answer Posted / pravinash
array is collection of similar datatype. it is a static
memory allocation means we can not increment and decrement
the arry size once we allocated. and we can not increment
the base address, reassign address.
pointer is a dynamic memory allocation. we can allocate the
size as we want, assigning into another variable and base
address incrementation is allowed.
| Is This Answer Correct ? | 72 Yes | 9 No |
Post New Answer View All Answers
How many bytes is a struct in c?
Is it possible to initialize a variable at the time it was declared?
write a program to find the given number is prime or not
Explain what is wrong with this program statement? Void = 10;
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
How can you tell whether a program was compiled using c versus c++?
What is scanf () in c?
Why is void main used?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Where we use clrscr in c?
What is array of pointers to string?
What is infinite loop?
What do header files do?
What is an lvalue in c?
What are predefined functions in c?