mirror of https://github.com/ossrs/srs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
342 B
C++
24 lines
342 B
C++
/*
|
|
# https://www.jianshu.com/p/eaa2700ebedc
|
|
g++ frame0.cpp -g -O0 -o frame && ./frame
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int callee(int a, long b) {
|
|
int c = a;
|
|
c += (int)b;
|
|
return c;
|
|
}
|
|
void caller() {
|
|
int v = callee(10, 20);
|
|
printf("v=%d\n", v);
|
|
}
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
caller();
|
|
return 0;
|
|
}
|
|
|