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
What is the use of fbus protocol?
What are the advantages of six pulse converter?
Define what is demodulation?
i m selected in AAI JE. my interview is on 25 sept. 2010. i don't hv any idea abt aai interview. can anyone help me, i want to know interview qus of aai. so pls help me... my e-mail id -- mailmanish_kumar@yahoo.co.in
What is ascii in reference to electronics?
HI ALL.. I TOO APPLIED FOR THE POST OF JR.EXECUTIVE ELECTRONICS(AAI).HOW DO U PEOPLE KNOW ABOUT THE EXAM DATE DO U GOT ANY ACK...
Explain how many states does signal has?
Why is the grid in a cro provided with a hole in it?
Iwant the old question paper for J.E(Tele.Signal).
What is the use of starter and choke in tube
Plz tell me the GATE interview question asked for ECE branch?
i am preparing for AAI JR EXECUTIVE exams so plz suggest the objective materail for preparation
please provide me technical question paper and the details of exam dates
What is meant by natural commutation?
How the active power factor correction changes the wave shape of current drawn by a load to improve the power factor?