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

How can I manipulate strings of multibyte characters?

1108


What are void pointers in c?

994


What is non linear data structure in c?

1018


Are the variables argc and argv are always local to main?

1020


Sir i need notes for structure,functions,pointers in c language can you help me please

2409


How do you use a pointer to a function?

1078


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1586


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

5061


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1227


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1508


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2171


What is queue in c?

1096


How many keywords are there in c?

1074


What is c value paradox explain?

1084


Explain the array representation of a binary tree in C.

1225