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


Please Help Members By Posting Answers For Below Questions

Can i know what will be the cut off criteria for go to final isro interview??

1916


In what is the residual magnetic flux density more?

650


What is the need for frequency compensation in practical op-amps?

628


how can we get the output of half adder by using 555 timer circuit,give it desired circuit diagram

1905


plz send the rrb junior engg and assistant loco pilot previous quastion papers

1513






Different types of communications? Explain.

633


What is the main drawback of a single phase half bridge inverter?

575


What is photodiode?

597


What is a bcd? What are its advantages and disadvantages?

568


What happens if an amplifier is biased at cutoff or at saturation?

662


Explain why a voltmeter should be of very high resistance?

603


What are the disadvantages of the harmonics present in the inverter system?

701


What is ssb modulation?

655


What is automation industries main category and sub category?

555


Draw the frequency response of DARLINGTON PAIR

2395