What are segment and offset addresses?

Answers were Sorted based on User's Feedback



What are segment and offset addresses?..

Answer / sanjay bhosale

Segments are nothing but sections for e.g code segment(also called text region),data segment, stack segment and heap segment.
They represent different parts of the process or different aspects of the process.

Offsets represents address where next read of write should begin.

Is This Answer Correct ?    5 Yes 1 No

What are segment and offset addresses?..

Answer / mayank

When paging technique is performed ,The page will breaks in
to the segments and its sequence is said to be segments and
is width or can be said as length is called is offset.
In sort...
segment is physical address..
and offset is logical address..

Is This Answer Correct ?    14 Yes 11 No

Post New Answer

More C Code Interview Questions

how to return a multiple value from a function?

2 Answers   Wipro,


Is the following code legal? struct a { int x; struct a *b; }

2 Answers  


prog. to produce 1 2 3 4 5 6 7 8 9 10

4 Answers   TCS,


Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])

1 Answers  


#include<stdio.h> #include<conio.h> void main() { int a=(1,2,3,(1,2,3,4); switch(a) { printf("ans:"); case 1: printf("1");break; case 2: printf("2");break; case 3: printf("1");break; case 4: printf("4");break; printf("end"); } getch(); }

0 Answers  






plz send me all data structure related programs

2 Answers  


main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 Answers  


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates.

19 Answers   Amazon, BITS, Microsoft, Syncfusion, Synergy, Vector,


main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }

1 Answers  


main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }

1 Answers  


main() { char a[4]="HELL"; printf("%s",a); }

3 Answers   Wipro,


Sorting entire link list using selection sort and insertion sort and calculating their time complexity

1 Answers   Infosys, Microsoft, NetApp,


Categories