answersLogoWhite

0

How can you read string in C language?

Updated: 8/20/2019
User Avatar

Wiki User

12y ago

Best Answer

You mean read from file/standard input? With function fgets.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you read string in C language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is literal in c language?

a string constant


How do you read an image in c language?

with read or fread


Special character in C language?

special character in c language are as follows~ ' ! @ # % ^ & * () _ - + = | \ {} [] : ; " <> , . ? /


Definition of buffer in assembly language?

its just like a string of c++


How you can convert from string to int in C language?

Use the atoi() or atol() function.


How print the string with double cot in c plus plus language?

console.wrikerle("""");


Int a is literal in C language or not?

int a; -- variable definition"int a" -- string literal


What is the syntax for string in c?

The C programming language has no notion of a string. The C runtime libraries interpret a string as an array of 'char' (sometimes 'unsigned char'), where a byte (char) with numerical value zero (often written as '\0' in C) denotes the end of the string. Modern variations also support modern forms of strings based on different data types (wchar, etc) in order to support more complex encodings such as Unicode. These, too, are interpretations of combinations of language features, but not a built-in part of the language.


What symbol or character determines end of string?

In C programming language, a string is an array of characters which is always terminated by a NULL character: '\0'


What are the functions of Atoi itoa and gcvt in C language?

All these are conversion functions - atoi()-string to integer.itoa()-integer to string.gcvt()-double to string


What are programming language that produced c?

C is a programming language. Example of C or C++ Programing would be the following: add matrices, get ip address, and read files.


Can a notepad file be read using C language?

sure