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

Explain which oscillator is best for general purpose?

976


We take the area of collector wide comparison to base and emitter. Why?

1002


Explain what are the two mechanisms of breakdown in a p-n junction?

1154


What is the difference between on-off control and phase control?

1629


which book is better for rrb examination?

1809


What do you mean by Splitter?

1860


pls send me the syllabus questions on rrb section engineer (telecom)

2452


What is the maximum or minimum value of tv in msa to calculate r&r?

968


Interview questions for ITC Ltd for ECE stream

1808


What are minterm and maxterm?

1131


Explain how to convert design gray to binary code?

990


Define what do you understand by collector reverse saturation? In which configuration does it have a greater value?

1337


Define noise in modulation?

1116


What principle does a q-meter operate?

1091


What are the applications of buffer?

1021