fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct tempStr{
  5. int a = 10;
  6. int b = 20;
  7. };
  8.  
  9.  
  10.  
  11. int main() {
  12. // your code goes here
  13.  
  14. tempStr tA = {};
  15. cout << tA.a << endl;
  16. cout << tA.b << endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5428KB
stdin
Standard input is empty
stdout
10
20