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

which is best car to buy in india, if the budget is below or equal to 3.5 lakhs?

4 Answers   TCS,


Please send me Sample papers National Informatics Centre (NIC) Programmer. I am giving this paper first time..so if any one have previous question papers send to manoj200.yadav@gmail.com. thnx in advance

0 Answers   NIC,


what does the interviewer mean by saying "have a good life " cheerfully at the end of an HR interview??? is this positive or negative sign to be selected?

0 Answers  


hi this is amit..please help me to out this problem Objective 8: Create Resources (Function libraries) Requirements: Create a new order with the Flight Reservation application. 33. Use the script created above. 34. Write a function using VBScript that will take a date as an input and add 10 to it. i.e. if the date is passed as “15/08/2008” then after adding 10 it should become as “25/08/2008” 35. Use this function to parameterize the step used to enter “Date of Flight” 36. Run the pack thanx & regards

0 Answers   Datamatics,


I am getting the following error,when I am running the script, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. My Script: Itemname=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Print Itemname Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").Select "Itemname" Any Help? Thanks, Uma

0 Answers  


Write a program in ‘C’ that will accept 10 numbers from the user, sort them & then perform the binary search. The searching number will be arithmetic mean of the 10 numbers accepted from the user. Write the sort() & binSearch() functions for performing the sorting & binary search. Also create display function() for displaying the list. Sort() function will use selection sort and only receive one argument (Single char type)as type of sorting i.e. ascending (a) or descending (d). Display the list after sorting using a display() function. binSearch() function will accept one argument as a number to be search & return null or the index position of that number in the array. display() function is non argument non return type function. It will simply display the list row-wise. Program should use these functions by displaying the appropriate message for found or not found.

0 Answers  


what is difference between class and object in c++

0 Answers  


if your monitor is not started with your cpu, but start when monitor attach to another cpu then where is the problem?

2 Answers  


operation of carrier aided protection and what is the basis for choice of frequncy in powerline carrier system

0 Answers  


How to write C++ files programs?

1 Answers  


i am studying mechanical third year.. i like to do one year marine bridge course.. my question is . is there good oppourtunites for us (mecanical eng)? and tell about the salary

1 Answers  


what is difference between .dll and .exe files?

3 Answers   Persistent,


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)