Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdbool.h>
- #include <string.h>
- typedef struct{
- int i1;
- char *s1;
- } abe;
- abe mre(int x, char *y);
- int main(int argc, char **argv){
- abe di = mre(12, "hello");
- printf("%s", di.s1);
- return 0;
- }
- abe mre(int x, char *y){
- abe f;
- f.i1 = x;
- f.s1 = y;
- return f;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement