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

Answers were Sorted based on User's Feedback



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

Answer / prasath

thats error

Is This Answer Correct ?    2 Yes 0 No

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

Answer / punith

error

Is This Answer Correct ?    2 Yes 0 No

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

Answer / reddy

segmentation fault

Is This Answer Correct ?    2 Yes 1 No

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

Answer / vaibhav

it gives an error becoz of " .
if we ignore him then o/p will be HI .

Is This Answer Correct ?    1 Yes 0 No

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

Answer / vijay

h

Is This Answer Correct ?    0 Yes 0 No

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

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

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

Answer / vignesh1988i

first of all the character initilization itself will give an error. since 0 is not provided with single codes. if we neglect that error or we correct the above error. the final output will be 0

Is This Answer Correct ?    0 Yes 0 No

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

Answer / kalpana.y


There will be no output
because,in char function the total values should be given
in invited comas i.e,

ch={"H,I,O"};

Is This Answer Correct ?    0 Yes 1 No

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

Answer / vignesh1988i

it will print hi...

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

c programming of binary addition of two binary numbers

4 Answers  


in linking some of os executables are linking name some of them

0 Answers   IBM,


a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture, Digg.com,


Toggle nth bit in a given integer - num

5 Answers   Qualcomm,


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

0 Answers  


What is variable initialization and why is it important?

0 Answers  


When should you use a type cast?

0 Answers  


Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me

7 Answers  


What is the usage of the pointer in c?

0 Answers  


Explain About fork()?

0 Answers   TISL,


a C prog to swap 2 no.s without using variables just an array?

5 Answers   TCS,


What is the scope of static variable in c?

0 Answers  


Categories