Void main()
{
If(printf("C") && getch ())
}
Then output is C.
If I wrote clrscr() in the place of getch() then it gives error message why..
Answer Posted / shresth tyagi
in if statement if you are using && then it will give you output when both the conditions are true , if one of the conditions are not true than the compiler will give you an error and the correct program is ;
void main()
{ clrscr(); // it is used to clear anything on the command prompt
int i=1;
if(i==1)
printf("C");
getch(); // it is used to get character or string to print
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain which oscillator is best for general purpose?
We take the area of collector wide comparison to base and emitter. Why?
Explain what are the two mechanisms of breakdown in a p-n junction?
What is the difference between on-off control and phase control?
which book is better for rrb examination?
What do you mean by Splitter?
pls send me the syllabus questions on rrb section engineer (telecom)
What is the maximum or minimum value of tv in msa to calculate r&r?
Interview questions for ITC Ltd for ECE stream
What are minterm and maxterm?
Explain how to convert design gray to binary code?
Define what do you understand by collector reverse saturation? In which configuration does it have a greater value?
Define noise in modulation?
What principle does a q-meter operate?
What are the applications of buffer?