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

NOKIA BSC is designed on which platform?

1 Answers  


explain double side band and double side band -substrace carrier

0 Answers  


In wave guides tem wave propagation is not exit, give the physical interpretation?

0 Answers  


write test cases for cases

0 Answers  


What is dvm?

1 Answers   Dev Institute,






Mention some typical applications of pll?

0 Answers  


Explain rf?

0 Answers  


SIR CAN U GIV TOPICS TAT COVERED IN JR.EXECUTIVE (ELECTRONICS) INTERVIEW N ALSO TIPS TO CRACK THE INTERVIEW PLZ

0 Answers   Airtel,


diode made of which semicoductor has highest threshold voltage?

6 Answers  


Define what is the importance of valence shell and valence electrons?

0 Answers  


i having three wire RTD but i want analog input signal 4 to 20ma to Allen Bradly plc.so how to connect this one.pls clarifie me.

0 Answers  


HOW CAN I WRITE the SCENARIO , USE CASE , Hierarchical Task Analysis AND PLAN FOR ATM ? URGENT

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)