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...

what is difference between array of characters and string

Answer Posted / shayan

the main difference between array of char and string is that when we declare array of char like char name[6],in this case for example shayan s is stored in 0 index and last character is n which is at 5 index but i delared 6 because 6th index is of null character which is neccesary to declare but in string it will automatically declare by the compiler like "shayan" after n compiler automatically put \0 after n.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1222


what are non standard function in c

1967


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3370


I have a varargs function which accepts a float parameter?

1092


What is c definition?

1334


What is pointer to pointer in c language?

1207


What are volatile variables in c?

993


Can an array be an Ivalue?

1137


What is indirection? How many levels of pointers can you have?

1206


how to build a exercise findig min number of e heap with list imlemented?

2125


Why we write conio h in c?

1077


How do you list a file’s date and time?

1107


What does it mean when a pointer is used in an if statement?

1152


What are external variables in c?

1161


What is the process to generate random numbers in c programming language?

1216