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 and give me an example of a time when you had to explain some new procedures to your co-workers for quality service delivery, how did you go about it?

2874


What is the advantage of on-off control?

1137


Why can’t we use comparator to convert sin wave into square wave?

1155


Derive intrinsic stand off ratio.

1147


Define cmrr of an opamp?

1253


what is meant by procedure oriented n object oriented

1890


Why the aspect ratio of tv video display is 4:3 or 16:9?

891


For high voltage applications will you prefer mosfet or igbt?

1111


what can made electronic car by your company?

1831


WHAT R THE DIFFERENT CONFIGURATIONS OF FPGA

2108


What is a full-adder?

1036


State the disadvantage of a 8-4-2-1 code.

1401


hi freinds my name is lokesh and i am preparing for bel so anybody having bel question papers can please send to my mail-loki_426@yahoo.com

1978


which book is better for rrb examination?

1851


does RS-485 cables come with armour?

2022