Functions and structures
仰望星空
仰望星空 2020-08-12 09:09:23
0
0
1180

#include <stdio.h>

struct n

{

int x;

char c;

};

void func(struct n b){

b.x=20,b.c='y';

}

void main(){

struct n a={10,'x'};

func(a);

printf("%d,%c",a.x,a.c);

}

Why is the final result 10, x please answer it

仰望星空
仰望星空

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template