.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> OOPS >> Post New Question Subscribe to Interview Questions

How a pointer stores address?

Posted By :Abhisek Panda     Posted Date :July 27, 2010    Points :10   Category :OOPS 
A pointer is a variable which stores address of other variable. Pointer only stores the first byte of address and then we can find upcoming bytes according to the size of the variable.

For example if a variable of integer type is being accessed by a pointer. So the pointer will only store the first byte of the address and as integer datatype takes two bytes memory the next byte of address location can be find out by adding 1 to the first byte of the address.

You can also find related Interview Question to How a pointer stores address?  below: 

What is the difference between NULL AND VOID pointer?

  
NULL can be value for pointer type variables.
VOID is a type identifier which has not size.
NULL and void are not same. Example: void* ptr = NULL; (More...)

If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

  
The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type. (More...)

What is a dangling pointer?

  
A dangling pointer arises when you use the address of an object after its lifetime is over.
This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed. (More...)

How to validate a Email-address, in Form using JavaScript?

  
We can validate it through the reg expressions. For example we can declare all the reg expressions of the email in a variable as follows.

var reg = /^([A-Za-z0-9_-.])+@([A-Za-z0-9_-.])+.([A-Za-z]{2,4})$/; We need to compare the actual value with this expression for the validation. (More...)

How can you find IP address of the client in ASP.net ?

  
string clientIPAddress = Request.UserHostAddress.ToString(); (More...)

What is MAC address?

  
It is the address for a device as it is identified at the Media Access Control (MAC) layer in the network architecture.

MAC address is usually stored in ROM on the network adapter card and is unique. (More...)

What is the range of IP address?

  
IP addresses are divided into five classes as below.

Class A: 0.0.0.0 - 126.255.255.255(Can work with a network of very large hosts.)
Class B: 128.0.0.0 - 191.255.255.255(Can work in medium sized networks)
Class C: 192.0.0.0 - 223.255.255.255(Used in small LANs)
Class D: 224.0.0.0 - 239.255.255.255(Used for multicasting)
Class E: 240.0.0.0 - 254.255.255.255(Reserved for experimental purpose) (More...)

What is an IP address?

  
An IP address is a 32 bit number that uniquely defines a host on a TCP/IP network. Host may be a computer or any other device such as Printer.

IP addresses are normally expressed in doted decimal format with four numbers separated by periods such as,
192.167.123.143 (More...)

In an IP address can a network ID be 127?

  
No, a network ID can't be 127. Because 127 is not assigned to any IP address classes. It is reserved. (More...)

What is a Dangling Pointer?

  
If a pointer's memory has deallocated by the application means it can be crashed. This kind of situation is called as Dangling Pointers. (More...)

AppleTalk - Network Address ?

  
1. AppleTalk uses addressing to identify and recognize every device on a network similar to other common protocols .

2. Address is broadcast to all other nodes to determine whether it has been already utilized.

3. Fields in AppleTalk network address:

Network number
Node number
Socket number (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend