What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-22 01:40:37
return a tuple c++ python 3
# C++ CODE void divide_modulo(int a, int b, int *div, int *rest) { *div = a / b; *rest = a % b; } # COMPILE WITH gcc -o libexample.so -shared example.c # OR C++ g++ -o libfoo.so -shared example.cpp # PYTHON 3.7 CODE import ctypes lib = ctypes.c... Add solution