Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Eigen Compiler Suite
All Projects
Eigen Compiler Suite
Overview
Activity
Roadmap
Issues
News
Forums
Files
Download (366 Bytes)
Concerning the "copy" instruction
» struct_return.c
Rochus Keller
, 24 June 2024 12:53
#include
<stdio.h>
typedef
struct
{
int
quot
;
/* quotient */
int
rem
;
/* remainder */
}
div_t
;
div_t
div
(
int
_numer
,
int
_denom
)
{
div_t
res
;
res
.
quot
=
_numer
;
res
.
rem
=
_denom
;
printf
(
"quot=%d rem=%d
\n
"
,
res
.
quot
,
res
.
rem
);
return
res
;
}
int
main
()
{
div_t
res
;
res
=
div
(
33
,
44
);
printf
(
"quot=%d rem=%d
\n
"
,
res
.
quot
,
res
.
rem
);
return
res
.
rem
!=
44
;
}
« Previous
1
2
3
4
Next »
(3-3/4)
Loading...