Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago