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

1,2,3,5,8,13..... find 40th term......

1569


Name the breakdown mechanism in a lightly doped p-n junction under reverse biased condition.

721


is embeded technology is necessary for every electronics engineer?

1539


What is delay angle?

637


My lcd monitor not showing boot screen[dos]. Whenever I start the pc it shows blank screen till the windows xp starts. will you help me to solve this ?

1648






what is pla instruction

2726


what is the output differentiator and integrator?

585


Describe the difference between p-type and n-type semiconductor materials.

652


WHAT R THE DIFFERENT CONFIGURATIONS OF FPGA

1590


Explain why we need biasing for transistor, fet and mosfet?

596


Why the current in power diode varies linearly rather than exponentially with voltage?

765


what are the Technical Specifications of D/240SC-T1

606


What is q-factor of the coil?

666


Which material is piezoelectric?

613


i want to know some description about SIM architecture... what is inside the SIM?

1448