Advertisement
coder2k

Untitled

Jun 18th, 2024
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "utils.h"
  3.  
  4. int sum(const int a, const int b) {
  5.     return a + b;
  6. }
  7.  
  8. void print(const int* const begin, const int* const end) {
  9.     for (const int* p = begin; p != end; ++p) {
  10.         printf("%d\n", *p);
  11.     }
  12. }
  13.  
  14. int global = 100;
  15.  
  16. void print_global(void) {
  17.     printf("global = %d\n", global);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement