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 are the different pointer models in c?
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]
What is the use of typedef in structure in c?
What does %c mean in c?
what is array?
#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }
write a c program in such a way that if we enter the today date the output should be next day's date.
what is a stack
Difference between fopen() and open()?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What does *p++ do?
Explain the difference between call by value and call by reference in c language?