To what value are pointers initialized?




1) NULL


2) Newly allocated memory


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

Answers were Sorted based on User's Feedback



To what value are pointers initialized? 1) NULL 2) Newly allocated memory ..

Answer / deepanjali

no action is taken by complier to initialize pointers

Is This Answer Correct ?    21 Yes 3 No

To what value are pointers initialized? 1) NULL 2) Newly allocated memory ..

Answer / 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

To what value are pointers initialized? 1) NULL 2) Newly allocated memory ..

Answer / harman bajaj

When we create a pointer, then by default the pointer
initialized with NULL value .i.e. ASCII value of NULL is 0.

Is This Answer Correct ?    2 Yes 1 No

To what value are pointers initialized? 1) NULL 2) Newly allocated memory ..

Answer / shruti

Ponters are initialised to newly allocated memory locations.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More C Interview Questions

what is an inline function?

2 Answers   TCS,


The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................

14 Answers   HOV Services, IBM, Potty,


how i m write c program 1.check prime number 2.prime number series

1 Answers  


When should a type cast be used?

0 Answers  


largest Of three Number using without if condition?

0 Answers  






write a program to print largest number of each row of a 2D array

0 Answers  


what is the difference between %d and %*d in c languaga?

7 Answers   TCS,


can i know the source code for reversing a linked list with out using a temporary variable?

6 Answers   Honeywell,


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

0 Answers  


Explain a file operation in C with an example.

0 Answers   Amdocs,


There seem to be a few missing operators ..

0 Answers  


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

0 Answers  


Categories