26 lines
341 B
C
26 lines
341 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
int a = 0;
|
||
|
int b = 40;
|
||
|
int c = 2;
|
||
|
|
||
|
inline void lf(register int* r) {
|
||
|
a += *r;
|
||
|
}; // semicolon(;) not needeed!
|
||
|
|
||
|
/*
|
||
|
// Same as above...
|
||
|
inline auto void lf(register int* r);
|
||
|
inline void lf(register int* r) {
|
||
|
a += *r;
|
||
|
}; // semicolon(;) not needeed!
|
||
|
*/
|
||
|
|
||
|
lf(&b);
|
||
|
lf(&c);
|
||
|
|
||
|
printf("%d\n", a);
|
||
|
}
|
||
|
|