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

Is c still relevant?

1037


What are the 5 elements of structure?

1043


What does %c mean in c?

1031


What is calloc() function?

1051


What is the value of h?

992


What is the use of ?

996


When should a far pointer be used?

1064


Can you define which header file to include at compile time?

985


Where local variables are stored in c?

960


What is difference between far and near pointers?

989


What are the functions to open and close the file in c language?

989


What is a macro?

1054


Is c easy to learn?

936


What is difference between structure and union with example?

993


Which built-in library function can be used to match a patter from the string?

1241