how to get starting address of a running C program

Answers were Sorted based on User's Feedback



how to get starting address of a running C program ..

Answer / chandra sekhar kommuri

void main()
{
clrscr();
int a;
printf("adress of a ::%u",&a);
while(!kbhit());
}

Is This Answer Correct ?    0 Yes 0 No

how to get starting address of a running C program ..

Answer / vivek

we can get by convert prog. into sourse code

Is This Answer Correct ?    0 Yes 0 No

how to get starting address of a running C program ..

Answer / manoj singh

we find out the address of any variable.
void main()
{
clrscr();
int a;
printf("adress of a ::%u",a);
while(!kbhit());
}



i dont understand this question writeway but this is
my vew.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

0 Answers   Wipro,


consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

4 Answers   TCS,


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

0 Answers  


What is merge sort in c?

0 Answers  


What is an expression?

0 Answers  


value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?

6 Answers   Google,


What is the difference between new and malloc functions?

0 Answers   InterGraph,


Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.

11 Answers   Microsoft,


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

0 Answers   Huawei,


What are the properties of union in c?

0 Answers  


Do you know what is the purpose of 'extern' keyword in a function declaration?

0 Answers  


What is #ifdef ? What is its application?

0 Answers   TCS,


Categories