Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
zhangyongpan
/
gitDemo
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
添加c语言
master
永攀 张
hace 3 días
padre
3b28f5605a
commit
d58ce75182
Se han
modificado 1 ficheros
con
13 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+13
-0
hello.c
+ 13
- 0
hello.c
Ver fichero
@@ -0,0 +1,13 @@
int add(int a, int b) {
return a + b;
}
int main() {
MathFunc f = add; // 将加法函数赋值给函数指针
int result = f(3, 5); // 通过函数指针调用加法函数
printf("3 + 5 = %d\n", result); // 输出:3 + 5 = 8
return 0;
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar