1、获取服务进程PID [rootVM-32-26-centos ~]# service be3Service status
Application is running as root (UID 0). This is considered insecure.
Running [25383]2、获取进程占用详情
[rootVM-32-26-centos ~]# cat /proc/25383/status
Name: java
Umask: 0022
State: S…
1.函数的基本语法
函数的格式为: 返回值类型 函数名(参数列表){ 函数体(包括返回值语句) }
利用上述的格式 我们可以自己整一个实现加法功能的函数
int add(int a, int b){return a b;
}
int main(){int c add(10, 20);printf("%d", c);// 30return …