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

char ch="{'H','I',0};printf("%s",ch);what is output

Answer Posted / sathish kumar

Hi All,

this is sathish. upto my knwowledge it depends on
compiler. in TurboC if u give char ch={'AB'}; it will
print B. In VC++ if u give char ch={'ABC'} it will give
C. But in TurboC u cannot give like this char ch={'ABC'};
(three character r nt allowed).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a house a shell structure?

1215


What is a file descriptor in c?

1199


What functions are in conio h?

1265


The difference between printf and fprintf is ?

1346


How pointer is different from array?

1147


Differentiate call by value and call by reference?

1027


How can a number be converted to a string?

1396


When should volatile modifier be used?

1076


difference between object file and executable file

6803


What is a void * in c?

1136


What are the types of variables in c?

1088


What is the size of a union variable?

1100


How can you determine the maximum value that a numeric variable can hold?

1299


Why do we use pointer to pointer in c?

1140


Is there anything like an ifdef for typedefs?

1223