Video solution will be uploaded soon.
What is the output of the following program ?#include <iostream>using namespace std;struct demo int var;;int main() demo str; demo *ptr; str.var = 100; ptr = &str; cout << ptr->var; return 0; | Watch the step-by-step video solution for this NIMCET PYQ.