Advertisement
dllbridge

Untitled

Oct 19th, 2024
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.98 KB | None | 0 0
  1.  
  2. #include  <stdio.h>
  3.  
  4. void first(const char *p1, const char *p2);
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. ///////////////////////////////////////////////////////////////
  12. int main()
  13. {
  14.    
  15.  
  16.    
  17.     first("4.3", "Vera Buraya");
  18.    
  19. }
  20.  
  21.  
  22.  
  23.  
  24. ///////////////////////////////////////////////////////////////
  25. void first(const char *p1, const char *p2)
  26. {
  27.      
  28.      char sz[99];
  29.      
  30.      sprintf(sz, "Course work for option %s, created by %s.", p1, p2);
  31.       printf("%s\n", sz);
  32.      
  33. }
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.   //  printf("Course work for option 3.2, created by Ivan Ivanov.");
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. /*
  66. #include  <stdio.h>
  67. #include <stdlib.h>
  68.  
  69. int n = 45;
  70.  
  71. //char sz[122222]
  72.  
  73.  
  74. ///////////////////////////////////////////////////////////////
  75. int main()
  76. {
  77.    
  78.    
  79.     int n1 = 155;
  80.    
  81.     int *p = (int*)malloc(sizeof(int));
  82.  
  83.  
  84.     *p = 11;  
  85.    
  86.     printf("*p = %d\n", *p);
  87.    
  88.    
  89.     int &r = *p;
  90.    
  91.     printf("r = %d\n", r);
  92. }
  93.  
  94.  
  95.  
  96. */
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement