what is the first address that gets stored in stack
according to a C or C++ compiler???? or what will be the
first address that gets stored when we write a C source
code????????

Answers were Sorted based on User's Feedback



what is the first address that gets stored in stack according to a C or C++ compiler???? or what w..

Answer / prasant

The function return address is placed on the stack by the
x86 CALL instruction, which stores the current value of the
EIP register.

Is This Answer Correct ?    9 Yes 0 No

what is the first address that gets stored in stack according to a C or C++ compiler???? or what w..

Answer / valli

the return address of function main will be stored in the
stack

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More C Interview Questions

What is a static function in c?

0 Answers  


What is the deal on sprintf_s return value?

0 Answers  


write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.

6 Answers  


What is restrict keyword in c?

0 Answers  


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

0 Answers   Microsoft,






What are the types of macro formats?

0 Answers  


Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

0 Answers   TCS,


how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y

4 Answers   TCS,


int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,


When do we get logical errors?

0 Answers  


. Consider the following program main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is (A) 1 (B) 3 (C) -6 (D) none

9 Answers   Oracle,


write a program that will accept two integers and will implement division without using the division operator if the second value is an odd number and will implement multiplication without using multiplication operator if the second value is an even number.

1 Answers  


Categories