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
Can i know what will be the cut off criteria for go to final isro interview??
In what is the residual magnetic flux density more?
What is the need for frequency compensation in practical op-amps?
how can we get the output of half adder by using 555 timer circuit,give it desired circuit diagram
plz send the rrb junior engg and assistant loco pilot previous quastion papers
Different types of communications? Explain.
What is the main drawback of a single phase half bridge inverter?
What is photodiode?
What is a bcd? What are its advantages and disadvantages?
What happens if an amplifier is biased at cutoff or at saturation?
Explain why a voltmeter should be of very high resistance?
What are the disadvantages of the harmonics present in the inverter system?
What is ssb modulation?
What is automation industries main category and sub category?
Draw the frequency response of DARLINGTON PAIR