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 is the use of fbus protocol?

1056


What are the advantages of six pulse converter?

1987


Define what is demodulation?

1245


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

2067


What is ascii in reference to electronics?

1138


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...

1939


Explain how many states does signal has?

1061


Why is the grid in a cro provided with a hole in it?

1054


Iwant the old question paper for J.E(Tele.Signal).

2146


What is the use of starter and choke in tube

1663


Plz tell me the GATE interview question asked for ECE branch?

2719


i am preparing for AAI JR EXECUTIVE exams so plz suggest the objective materail for preparation

2459


please provide me technical question paper and the details of exam dates

2029


What is meant by natural commutation?

1083


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

1043