The program assigns a null value to an integer pointer ptr and prints the value of ptr using the cout statement. Here's what the program does step by step:
#include<iostream> using namespace std; int main() { int *ptr = NULL; cout<<"The value of ptr is "<<ptr; return 0; }To download raw file Click Here
The value of ptr is 0
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions