Advertisement
dllbridge

Untitled

Feb 18th, 2023
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.05 KB | None | 0 0
  1.  
  2.  
  3. #include   <stdio.h>
  4.  
  5.  
  6. ////////////////////////////////////////////////////////////
  7. int main()                                                //
  8. {
  9.    
  10.    
  11.     int n   =  2147483647;
  12.     int *p  = &n;
  13.    
  14.  
  15.    
  16.     printf("n2 = %d, size int = %d \n", n, sizeof(n) );
  17.    
  18.     scanf("%d", &n);
  19. }
  20.  
  21.  
  22.  
  23.  
  24. /*
  25.  
  26. #include   <stdio.h>
  27.  
  28.  
  29. ////////////////////////////////////////////////////////////
  30. int main()                                                //
  31. {
  32.    
  33.    
  34.     int n  = 2147483647;
  35.     int n1 = 4;
  36.    
  37.     int n2 = n1 + n;
  38.    
  39.     printf("n2 = %d, size int = %d \n", n, sizeof(n) );
  40.    
  41.     scanf("%d", &n);
  42. }
  43.  
  44.  
  45. */
  46.  
  47.  
  48.  
  49.  
  50. /*
  51. #include   <stdio.h>
  52. #include  <locale.h>       //  здесь "живёт" setlocale(LC_ALL, "rus");
  53.  
  54.  
  55.     setlocale(LC_ALL, "rus");
  56.                
  57.     printf("Верные символы %d", 77);
  58.  
  59.  
  60.  
  61. */
  62.  
  63.  
  64.  
  65.  
  66.  
  67. /*
  68.  
  69. #include <iostream>
  70. using namespace std;
  71.  
  72.  
  73. int main()
  74. {
  75.  
  76.     setlocale(LC_ALL, "rus");  
  77.    
  78.     cout << "Привет - Hello !" << endl;
  79.    
  80.    
  81. return 0;
  82. }
  83.  
  84.  
  85. */
  86.  
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement