To what value are pointers initialized?




1) NULL


2) Newly allocated memory


3) No action is taken by the compiler to initialize
pointers.

Answer Posted / n

depends:
-if static storage for pointer(pointer itself is a global
variable) => initialized with NULL
-if automatic storage =>no initialization

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have enums?

590


What is C language ?

1517


Differentiate between the expression “++a” and “a++”?

687


What is the use of header files?

588


What is string concatenation in c?

561






Which is better pointer or array?

587


What is the data segment that is followed by c?

598


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

590


Explain how can you check to see whether a symbol is defined?

648


Why c is a procedural language?

569


What are the 4 types of programming language?

572


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1519


Write a program to print factorial of given number using recursion?

592


Tell us bitwise shift operators?

587


What does static variable mean in c?

640