Question: Im trying to pass a string from a scanf from a function using pointers. When I run the code it doesnt print anything. #include int

Im trying to pass a string from a scanf from a function using pointers. When I run the code it doesnt print anything.

Im trying to pass a string from a scanf from a function

#include int GetArray(int *output, int maxsize); void GetChar (char *string(2001); void GetNumber(int *Integer, float *Float) { int Num; float x; printf("Enter a Int Ecllowed by a space followed by a float: "); scanf("%d", &Num, &X) ; Integer = Num; *Float = x; } int main(void) { int Int; float Flo; char *String(200); printf("Welcome to Prelab "); GetNumber (&Int, &F10); GetChar (String); printf("you entered: $d, f, ", Int, Flo, *String); return 0; } void GetChar (char *string [200]) { printf("Enter a string without spaces and then hit enter: "); scanf("%s",string[200]); }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!