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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data type long in c?

613


What is a constant?

626


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2109


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

665


Is using exit() the same as using return?

666






Are pointers integers in c?

598


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

1757


What are the rules for the identifier?

660


What is the use of define in c?

584


What is the best way to comment out a section of code that contains comments?

767


How do you determine a file’s attributes?

589


Write a program to check prime number in c programming?

582


Is linux written in c?

590


Why do we use stdio h and conio h?

623


What does 2n 4c mean?

695