char ch="{'H','I',0};printf("%s",ch);what is output
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????
How to draw the flowchart for structure programs?
what value is returned to operating system after program execution?
How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance
program to convert a integer to string in c language'
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.
2 Answers Scientific Atlanta, Wipro,
Is register a keyword in c?
where are auto variables stored? What are the characteristics of an auto variable?
How. To pass the entrance test
Write a program in c to replace any vowel in a string with z?
who is first prime minister in india??
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......