int *p = NULL;
printf("%1d",p) ;
what will be the output of this above code?
Answers were Sorted based on User's Feedback
Answer / vasanth
Ans : 0
Since the pointer is having NULL Address,when we try to
print like printf("%1d",*p) it will be giving the exception
hence windows will not accept NULL pointer.
Use cout<<p; then we can print NULL address 0x00000000
Note: the ans is based on VC++ compiler.
| Is This Answer Correct ? | 18 Yes | 0 No |
Do you know the use of vtable?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is the first name of c++?
what is the basic concept of c++(object oriented programing)
Why c++ is so important?
Can I uninstall microsoft c++ redistributable?
Define pointers?
What is "mutable" keyword?
How long does it take to get good at leetcode?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What is difference between class and function?
What's c++ used for?