Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the advantages of ac voltage controllers?

1365


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.

2200


working and uses of current transformer?

2153


What is a transistor? What are its applications?

1203


What happens when a voltmeter is connected in series with the circuit?

1171


pls send me the placement papers and anyother useful information to sureshec127@gmail.com. STREAM: ELECTRONICS AND COMMUNICATION

1847


Explain how the active power factor correction changes the wave shape of current drawn by a load to improve the power factor?

999


any one have C-Dot interview question.....its urgent ...if any one hav..plzz share as soon as possible.

2931


What happens when an inverter is placed between both inputs of s-k flip flop?

1104


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

1996


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?

1922


What are the advantages of ics over discrete component circuits?

1205


What are the applications of comparator?

1128


please somebody who have asked questions related to electronic and communication eng siemens 2010-2012 post here

1961


How are electrons in an atom visualized?

1126