Mayank's C/C++ Challenger - II
I am back with another question. Here it goes:
What will happen to the following code?
int main()
  {
              int *p = NULL ;
              int *&ref = p ;
              *ref = 5 ;
              cout << *p << endl ;
              return 0 ;
  }
Tell me whats right or whats wrong with this piece of code.
To make it easy, here are the options:
- Compilation error
- Runtime error
- Normal Execution
 
All the best to everyone, hope you all will enjoy it.
Thanks and Regards,
Mayank Shukla.
 
                                             
 
                                 
                                