B
B
Budyla2020-11-25 01:21:15
C++ / C#
Budyla, 2020-11-25 01:21:15

How to check an array element of type integer, if you can enter anything of any length (C, only stdio.h)?

It is necessary to issue a check in scanf, checking the entered characters, whether it is a number or not

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-11-25
@SaNNy32

int value;
scanf(“%d”, &value);

www.c-cpp.ru/content/scanf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question