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 array subscripts always start with zero?

1363


What is the scope of local variable in c?

1198


State the difference between x3 and x[3].

1164


What are keywords c?

1090


What are the loops in c?

1049


Write a program to find factorial of a number using recursive function.

1176


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

1188


How is a structure member accessed?

1185


What is a void pointer in c?

1157


What is getch c?

1341


In C language what is a 'dangling pointer'?

1234


What are loops in c?

1064


formula to convert 2500mmh2o into m3/hr

1049


How do you define a string?

1148


Is there any possibility to create customized header file with c programming language?

1106