holzschu / holzschu/a-shell

c multiple line user input using scanf is not working.

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

## Code
#include
int main(int argc, char *argv[]){
int i;
double r;
char name[20];
scanf("%s,%d,%lf", name, &i, &r);
printf("Values are = %s\n%d\n%lf\n", name, i,r);
return 0;
}

## Execute
The above code is executed using clang and run using wasm.

## Problem

The code takes multiple line user input and output them using printf function. But it is only taking single line input and rest of the input is left blank. It would be very helpful if multiple line user input can be provided.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.