fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3. #include <inttypes.h>
  4.  
  5. void fun(int8_t *i, int8_t *j){
  6. *i *= *j;
  7. }
  8.  
  9. int main(int argc, char** argv){
  10. int8_t p = 0;
  11. int8_t g = 0;
  12.  
  13. scanf("%" SCNu8,&p);
  14. scanf("%" SCNu8,&g);
  15. printf("p = %d, g = %d\n", p, g);
  16.  
  17. fun(&p, &g);
  18. printf("%d ", p);
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0.01s 5556KB
stdin
4
5
stdout
p = 4, g = 5
20