I wanted to understand what happens if we assign \00 to int in C++. I encountered this problem while executing the following code:
#include <iostream>
using namespace std;
int main()
{
int i = '\00' ;
cout << i ; // why the output is zero?
return 0 ;
}