V
V
voproser456542022-03-02 16:11:05
C++ / C#
voproser45654, 2022-03-02 16:11:05

How to implement string data type in C?

I don’t want to write every time , I know that it’s possible to implement it how, but will it be right? char x[] = "Бла бла бла";
typedef char string[];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2022-03-02
@voproser45654

It won't be a mistake. But it won't make any sense either. C is a low-level language, it has no means of working with strings, only functions with the help of which the magic is created ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question