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 |
How can my program discover the complete pathname to the executable from which it was invoked?
write a program to convert a expression in polish notation (postfix) to inline (normal)
write a 'c' program to sum the number of integer values
how can write all 1to 100 prime numbers using for loop,if and break ?
If I have a char * variable pointing to the name of a function ..
write a c program that if the given number is prime, and their rearrangement(permute) of that number is also prime. Ex: Input is "197" is prime Output: 791,917,179 is also prime. Please any one tell me tha code for that
how to set Nth bit of a variable?
what are the files which are automatically opened when a c file is executed?
Why is c called "mother" language?
enum { SUNDAY, MONDAY, TUESDAY, }day; main() { day =20; printf("%d",); getch(); } what will be the output of the above program
define function
To what value do nonglobal variables default? 1) auto 2) register 3) static