1)what is output for the following program.
#include<stdio.h>
main()
{
int *p,*q,i;
p=(int *)100;
q=(int *)200;
i=q-p;
printf("%d",i);
}
a)100 b)25 c)0 d)compile error



1)what is output for the following program. #include<stdio.h> main() { int *p,*q,i; p=(i..

Answer / pritesh

25 In cfree(4 BITS FOR INT)
50 in TC(2 BITS FOR INT)

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Engineering AllOther Interview Questions

What is a superheterodyne receiver?

2 Answers  


I have file with input as below : Name Value Rohan 12,13,14 Rohit 1,2,3 Output should be : Rohan 12 Rohan 13 Rohan 14 Here how will the normalize component work? Thanks

0 Answers   Cap Gemini,


a tap can fill the empty tank in 12 hours , but due to a leak in the bottom it is filled in 15 hours. If the tank is full then tap A is closed then in how many hours the leak can empty it?

3 Answers   Mind Tree,


Describe VCO?

1 Answers  


what will happpen when "MY COMPUTER" IS PERMANENTLY REMOVED FROM MY COMPUTER?

2 Answers  


100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos. to b displayed..

7 Answers   Exilant,


Why did they used to make the mill chimneys so tall?

0 Answers  


Explain diffrent parts of an instruction format.

0 Answers  


Which software model is best suited for the Maintenance kind of project?

0 Answers  


what are the various technique used for inter process communication?

0 Answers  


Explain the difference between RAM and ROM? What is “Volatile Memory

0 Answers  


Write a shell script to delete all files present in a directory “dir1”. Any error, if it occurs while carrying out this operation should be stored in a file errorlog

0 Answers  


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