What is the real difference between arrays and pointers?
Answer Posted / revathi
Array supports static memory allocation in the sense the memory size is allocated before it can use
Pointer supports dynamic memory allocation in the sense the memory is resized
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
I came across some code that puts a (void) cast before each call to printf. Why?
Can a pointer be null?
Differentiate between #include<...> and #include '...'
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What is class and object in c?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is the modulus operator?
Why pointers are used in c?
Hi can anyone tell what is a start up code?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is c language in simple words?
Why is c so popular?
Write a simple code fragment that will check if a number is positive or negative.