Question: I just need this 3 questions please help i have 2 hours to submit QUESTION 19 Consider this struct: typedef struct Xyz int x; int


I just need this 3 questions please help i have 2 hours to submit
QUESTION 19 Consider this struct: typedef struct Xyz int x; int y } Xyz; We want to create an Xyz object where x is 20 and y is 50. Which of the following will initialize this struct correctly? Xyz m; m[ "x" ] = 20; m[ "Y" ] = 50; Xyz m; m.x = 20; m.y = 50: Xyz m[ 20, 50 ]; Xyz m; m[x] = 20; m[y] = 50; Which of the following code blocks is correct way to use scanf to get user input and store it into an int variable? O int x = 0; scanf("%d", x); O int x = &scanf("%d"); O int x = 0; scanf("%d", &x); O int x = scanf("%d" ); Consider these two string variables: char str1[] = "computer"; char str2[ 20 ]; How do you assign strito str2 so that both strings have the same characters? str2 = stri; ; O strcpy( stri, str2 ) = 0; O strcpy( str2, stri); O strcpy( stri, str2 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
