What is the output of below program?

#include <stdio.h>

int main()

{

int p,q;

for(p=1,q=1;p<7;p++)

{

printf("%d%d__",p,q);

}

return 0;

}

Answers- 1. 17__27__37__47__57__67__

2. 11__21__31__41__51__61__

3. __11__21__31__41__51__61__

4. Compilation error



What is the output of below program? #include <stdio.h> int main() { int p,q; ..

Answer / ishara

11__21__31__41__51__61__

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Electrical Engineering Interview Questions

1)What will happen when 240 VDC supply is connected to 240VAC supply(DC supply +ve is connected to phase of AC supply & DC supply is to neutral of AC supply). 2)Also what will happen when 240 VDC supply is connected to 240 VAC supply in reverse polarity as of Sr. No 1.

2 Answers  


Differene between KVA and KW.

6 Answers   Bharti,


Types of 132KV and 222 KV protection.

1 Answers  


What is the difference between Neutral And Earth ?

2 Answers   Ambuja, Reliance,


why the AC or DC motor takes high starting current?

2 Answers  






Single line diagram for dbb (double bus bar)system.

0 Answers   KSEB, L&T, Siemens,


what is the difference b/w circuit breakers and relays?

3 Answers  


can anibody tel me on what basis the transformer vector groups are determined????

1 Answers  


why does same amount of current flow in the circuit inspite of any number of resistances in the circuit?

3 Answers  


In case of salient pole alternator when number of poles are 4 or more than 4 it helps the flux wave to be sinusoid as air gap length is increased from center to tip , but if the number of poles are 2 how does the flux wave is sinusoidal?

0 Answers  


how gen. load increase or decrease ? what happen with gen on that time

2 Answers  


What is the difference between Ceiling Fan armature and Tablefan Armature or winding.

5 Answers   Pricol,


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)