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 / zubair

String is much same as character array, it can also be
checked by each characters:
string str;for(int i=0;str[i]!='\0';i++) cout <<str[i]<<endl;

1. The NULL terminator is loaded automatically in string.('\0')
2.Both of them drop the data after space when we take input.

Is This Answer Correct ?    35 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why main is used in c?

1078


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1035


Write a Program to accept different goods with the number, price and date of purchase and display them

6238


What is the meaning of ?

1040


What is hashing in c language?

1318


Is c high or low level?

1010


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1089


Explain what are the different data types in c?

1225


Is c pass by value or reference?

1041


Is c++ based on c?

1074


What are the modifiers available in c programming language?

1223


Can you think of a logic behind the game minesweeper.

2469


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2449


Why can arithmetic operations not be performed on void pointers?

1046


What are the different types of linkage exist in c?

1034