Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

WHOT IS CHAR?

Answer Posted / himaja

n C language, strings are stored in an array of char type along with the null terminating character "\0" at the end. In other words to create a string in C you create an array of chars and set each element in the array to a char value that makes up the string. When sizing the string array you need to add plus one to the actual size of the string to make space for the null terminating character, "\0"

Syntax to declare a string in C:

Sample Code
char fname[4];

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do character constants represent numerical values?

1347


What is a structure member in c?

1007


How we can insert comments in a c program?

1129


Explain how do you determine a file’s attributes?

1050


What is string function in c?

987


What is the use of #include in c?

1087


What are the types of operators in c?

1066


Explain what does the function toupper() do?

1077


#include { printf("Hello"); } how compile time affects when we add additional header file .

1895


What are the different file extensions involved when programming in C?

1284


What does 1f stand for?

1163


How can I find the modification date and time of a file?

1087


What does stand for?

1086


differentiate built-in functions and user – defined functions.

1092


Explain bit masking in c?

1143