What are segment and offset addresses in context of C?
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..
Char *ptr = "Hello"
Here the pointer value will be consider as char constant and stored in Code/Text segment, but why ? and why not data or stack ?
a and b are compared against the threshold ‘TH’, and the nearest value is voted as output
Can someone explain me the usage of function pointer? Probably with real time examples ?