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

Which series of ICs are used for military applications?

2 Answers   BEL, NTPC,


How to Create the Node file with 2 E1 (4+4+4) & EDAP.

0 Answers   NSN,


Sir, I hav applied for the post of sec. engg in RRB in telecom-sigal domain. Can u suggest hows the question pattern. Do I hav 2 follow technical books or general aptitude books ?

2 Answers   BSNL,


What happens to the residual resistivity of metals

0 Answers   C DAC, CDAC,


One FIU19(E) Flexbus LED is steadily on. What is the meaning? How can a Laptop PC be locally connected to a FIU19E? What is the maximum capacity of a FlexiHopper radio link operated by a FIU19(E), that is equipped with two 4x2M plug- in units? Which of the listed combination of indoor units support

0 Answers   NSN,






Explain the construction of a jfet

0 Answers  


hai friends.................the question paper pattern 100 aptitude....100 technical ....duration 120 minutes.....technical is cover all the previous competitive exams (jto,bel,,,,,) but prepare well basics of each subject,,

0 Answers   BDL,


What is the main factor for controlling the thermal generation and recombination?

0 Answers  


Why vestigial side band is used in tv signal transmission?

0 Answers  


sir please send me d previous paper of jindal steel power corporatio ltd.. mah email id z khan.aalmeen@gmail.com

0 Answers   Jindal,


Explain how to calculate knee point voltage?

0 Answers  


Different types of communications? Explain.

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • 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)