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 and give me an example of a time when you had to explain some new procedures to your co-workers for quality service delivery, how did you go about it?
What is the advantage of on-off control?
Why can’t we use comparator to convert sin wave into square wave?
Derive intrinsic stand off ratio.
Define cmrr of an opamp?
what is meant by procedure oriented n object oriented
Why the aspect ratio of tv video display is 4:3 or 16:9?
For high voltage applications will you prefer mosfet or igbt?
what can made electronic car by your company?
WHAT R THE DIFFERENT CONFIGURATIONS OF FPGA
What is a full-adder?
State the disadvantage of a 8-4-2-1 code.
hi freinds my name is lokesh and i am preparing for bel so anybody having bel question papers can please send to my mail-loki_426@yahoo.com
which book is better for rrb examination?
does RS-485 cables come with armour?