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



Void main() { If(printf("C") && getch ()) } Then output is C. If I wrote clrs..

Answer / 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

More Electronics Communications Interview Questions

A PLL maintains lock by comparing A The phase of two signals B The frequency of two signals C The amplitude of two signals D None of these

0 Answers  


WHAT IS THE PRINCIPLE OF RADAR

2 Answers   BEL,


What is a zener diode?

0 Answers  


What is half-adder?

0 Answers  


tell me about accenture

0 Answers  


what is a router how it woks? what is a compromised router in networks?how it works? what is a packet loss and packet dropping? what is a malicious packet?when it occurs?

0 Answers  


Hi..Iam going to give Junior Engineer exam og Railway mumbai I wanted to kow where i will get study stuff and GK books? Plz its urgent

1 Answers  


sir,i had a written test conducted by jindal steel and power ltd .so please forward me the type of questions asked in written test (technical)

0 Answers   Jindal,


Explain the main application of scr in electronic field as well as in software field?

0 Answers  


why a transistor amplify?

3 Answers  


What is the maximum speed of ethernet ?

2 Answers   TCS,


hi ,iam saikiran my betch is 56% of 24 backlogs .gre 860,ielts 5.5 and i had booked my slot in june ,how i should prepare any suggestion

0 Answers   TATA,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)