fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. /*
  6. Think of Local Scope
  7. Any variable or function declared other than the main function
  8. will be used only in that function only and cannot be accessed
  9.  
  10. Any variables used in main funt() can be accessed globally means any
  11. local function can use this too
  12. */
  13.  
  14. //Entry point for any program in our code ok
  15. int main() {
  16. // your code goes here
  17. //Any variable u declare is a global scope
  18. //1 byte -> 8 bits
  19. int x=10;// 4byte
  20. double y=20.00;
  21. char ch='a'; // 1 byte
  22. cout<<x<<"\t"<<y<<"\t"<<ch<<endl;
  23. return 0;
  24. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
10	20	a