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 are the advantages of ac voltage controllers?
IN A PN JUNCTION DIODE,( ON FORWARD BIAS ) WHEN ELECTRONS AND HOLES PAIRS MADE AND CURRENT FLOWS,THEIR IS NO END OF ELECTRONS AND HOLES IN A LITTLE SEMICONDUCTOR DEVICE.
working and uses of current transformer?
What is a transistor? What are its applications?
What happens when a voltmeter is connected in series with the circuit?
pls send me the placement papers and anyother useful information to sureshec127@gmail.com. STREAM: ELECTRONICS AND COMMUNICATION
Explain how the active power factor correction changes the wave shape of current drawn by a load to improve the power factor?
any one have C-Dot interview question.....its urgent ...if any one hav..plzz share as soon as possible.
What happens when an inverter is placed between both inputs of s-k flip flop?
i have a problem in programming using string program is- rajasthan rajasthan rajastha ajasthan rajasth jasthan rajast asthan rajas sthan raja than raj han ra an r n plz reply soon as posible as
Can someone guide me about the written test paper pattern for s/w engg having exp of more than 3yrs.will it be technical or aptitiude?
What are the advantages of ics over discrete component circuits?
What are the applications of comparator?
please somebody who have asked questions related to electronic and communication eng siemens 2010-2012 post here
How are electrons in an atom visualized?