write the output for yhe given program
int a=5;
void main()
{
int a=9;
printf("%d",a);
}
printf("%d",&a);

Answers were Sorted based on User's Feedback



write the output for yhe given program int a=5; void main() { int a=9; printf("%d",a)..

Answer / email

9 5

Is This Answer Correct ?    6 Yes 3 No

write the output for yhe given program int a=5; void main() { int a=9; printf("%d",a)..

Answer / ryan

cant call a function outside of all functions, won't compile
if it did
9, unknown address of global 'a' as a signed integer

Is This Answer Correct ?    2 Yes 0 No

write the output for yhe given program int a=5; void main() { int a=9; printf("%d",a)..

Answer / anusha

9

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Engineering AllOther Interview Questions

what is the difference between a decision statement and ea loop statement?

1 Answers  


am looking for ms,i got ielts score 5.5,and i dont have english score 60 in any any year.tell me can i get offer lettr from any university.is i am elegible..?

0 Answers  


I an doing Engineering in IT(4th year). i want to know what is the scope or .NET and Linux, and which is better for carrier

1 Answers  


What does balanced amplifier consist of?

1 Answers  


What is mean by the error LVALUE REQUIRED in C language

1 Answers  


2 ships are wardroom light house one side at 30 degree and other ship other side at 45 degree. If light house has 100 m, find distance of boat from light house. and also find distance of each boat from light house

2 Answers   3D PLM,


when there is a parametrized constructor, and an object is created with no arguments. will the default constructor be called?

1 Answers  


Describe an impedance matching circuit?

2 Answers  


Why viruses wont affect Linux systems?

1 Answers  


Find the fallacy in the following program segment? int a; short b; b=a;

1 Answers   Geometric Software, IBM,


write a program to reverse a string using recursive function without using str functions.

1 Answers  


how to initialize a pointer to an array?

1 Answers   Convergys,


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)