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

main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.

1 Answers   Cisco,


#include<stdio.h> int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean?

7 Answers   Intel,


Is it cc or c in a letter?

0 Answers  


What are pointers? Why are they used?

0 Answers  


what is pointer ? what is the use of pointer?

6 Answers   Infosys,






Explain how do you determine a file’s attributes?

0 Answers  


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

0 Answers  


What is the use of clrscr?

0 Answers  


code for selection sort?

1 Answers  


what is difference between procedural language and functional language ?

4 Answers   Wipro,


can any one tel me wt is the question pattern for NIC exam

0 Answers   NIC,


What library is sizeof in c?

0 Answers  






Categories