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

Why is the grid in a cro provided with a hole in it?

0 Answers  


When compared with other transducers measuring temperature, a four-lead platinum RTD 1. has better linearity over a wide operating range 2. has better accuracy and precision 3. has better stability at high temperature 4. is inexpensive Which of these are correct? Select one: a. 1,2 and 3 b. 2,3 and 4 c. 1,2 and 4 d. 1,3 and 4

1 Answers  


why is BPSK better than BFSK in presence of noise

5 Answers  


convert d flip flop to jk flip flop using mux

0 Answers   ABC,


what is asynchronous data transfer???

0 Answers  


How do you calculate the amount of feedback given in a negative feedback amplifier ? Illustrate

3 Answers  


What Are The Various Types Of Numbers For Network Identity?

0 Answers   Ericsson,


What are the different types of communications?

0 Answers  


define flyback converter.

0 Answers  


under which condition we shall prefer a shunt capacitor filter?

1 Answers   Siemens,


I am a fresher and i have done testing course from orbit institute hyd.can any1 say me whether it is necessary to do project in testing.if it is that which is best institute in hyd.can you please inform me if there is any job 4 freshers.thanxs

0 Answers  


what is operating ratio in railway

1 Answers  


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