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 / 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 |
How to convert binary to excess 3 code and vice verse?
What is simulator programme?
how to calculate qty. of random rubble masonary in retaining wall?
why pre and post scalers are used in micro controllers
A 12v regulated dc power supply has a voltage regulation of 0.5% find amagnitude of variation?
Why the aspect ratio of tv video display is 4:3 or 16:9?
Explain About RRC states
why we are using register of 1k,10k,100k,47k,330k in cell phone based voting machine project?
How many Tx Port in One Duplexer.
what is the main part of UPS?
Explain why fet is known as voltage control device?
Explain why 440 volts instead of 660 volts in 3 phases of supply system?