What is the real difference between arrays and pointers?

Answer Posted / sachin.r

Arrays allocate the memory during compile time.
Pointers allocate the memory during runtime.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bash c?

560


What is the c value paradox and how is it explained?

578


How can you avoid including a header more than once?

568


What tq means in chat?

584


Once I have used freopen, how can I get the original stdout (or stdin) back?

631






Can a pointer be null?

567


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

1631


Which one would you prefer - a macro or a function?

606


What is typedf?

674


What is pragma c?

619


why do some people write if(0 == x) instead of if(x == 0)?

656


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1316


What is the need of structure in c?

568


What are type modifiers in c?

625


What is linear search?

678