GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 37 of 64    Print  
what is difference between void and null pointer. is it same?

  
Total Answers and Comments: 2 Last Update: March 27, 2007     Asked by: sudhanshu shekhar 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: arulkumar
 
No, Void pointer is a pointer it is automatically type casted, we can assign to any pointer. But NULL pointer is a pointer which holds 0 (zero) as its content. (i.e) It doesn't pointing anything.

Above answer was rated as good by the following members:
rajani_vaddepalli15
February 10, 2007 02:15:12   #1  
arulkumar        

RE: what is difference between void and null pointer. ...
No, Void pointer is a pointer it is automatically type casted, we can assign to any pointer. But NULL pointer is a pointer which holds 0 (zero) as its content. (i.e) It doesn't pointing anything.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 27, 2007 06:42:05   #2  
howhy Member Since: March 2007   Contribution: 2    

RE: what is difference between void and null pointer. ...
arulkumar: 

No, Void pointer is a pointer it is automatically type casted, we can assign to any pointer. But NULL pointer is a pointer which holds 0 (zero) as its content. (i.e) It doesn't pointing anything.

 

Void pointer gets typecasted automatically  only in C.
While is C++ we have to do it manually.
(This is the difference of Void Pointers in C And C++ )
 

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Encapsulation => Data + member in a Class. not necessairly Public private.Abstraction =>  Data + member in a Class. But hide the data that you dont want to use outside the class.  make the things private that you dont want to show to client... ...
Read Answers (17) | Asked by : ramaprasad

Latest Answer : C++ is an Object Oriented Programming Language is as we know , perfectly backword compatible with C. Becase of this backword compatibility .. it has got many flaws in it that prevented it to become a really good OOP language. Java was developped by ...
Tags : Pointer

Latest Answer : When you create a custom type (class) in any language, that class in OOP is called Object and when you create an istance of this class just as we create instance of built-in types e.g. (int a,float b) it is called instance of the object. ...

Latest Answer : Abstraction: We don't have to bother about the data type of the object while accessing it.Encapsulation: We put all the correlated data and methods in a class.Faran Shabbir ...
Read Answers (7) | Asked by : girija

Latest Answer : This is method of thinking to resolve the problem ( implimenting the applicaiton using software languages).             - POP : Procedure thinking   ( modular approach of solve the problem)         -OOP : Object Thinking ( object ...
Read Answers (4) | Asked by : Manpreet Kaur

Latest Answer : DOS: single process, single thread Windows: multiple process, multiple threads ...
Read Answers (2) | Asked by : nandhini

Latest Answer : Dangling pointers and wild pointers in computer programming are pointers that do not point to a valid object of the appropriate type, or to a distinguished null pointer value in languages which support this. Dangling pointers arise when an object is deleted ...
Read Answers (1) | Asked by : rajan.c
Tags : Pointer

Latest Answer : arulkumar:  No, Void pointer is a pointer it is automatically type casted, we can assign to any pointer. But NULL pointer is a pointer which holds 0 (zero) as its content. (i.e) It doesn't pointing anything.   ...
Tags : Pointer

Latest Answer : 4bytes ...
Read Answers (2) | Asked by : shanmuga sundaram
Tags : Pointer

Latest Answer : Implicit cursor we have to open and close for  it's usage.It will not automatically close.Explicit cursor will automaticlly open and close.eg: for x in (exp.)       where x is the cursor name exp. is an expression.This ...


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

C++ Void Pointer and Null Pointer

C Void Pointer and Null Pointer In this C tutorial you will learn about two interesting types of pointers; void pointers and Null Pointer These pointers will be discussed in conjunction with syntax usage and example mosgoogle center Pointer to Void General Syntax void pointer variable; Void is use
 

SOA Concepts

SOA Concepts Today the concept of Service Oriented Architecture has become ubiquitous Evidence from recent years establish that SOA is not just about hype but a part of every major Business environment The truth is Service Oriented Architecture can be beneficial to Business only when it is utilized
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Learn Concepts

Web 2 0 Application Development Programming Concepts OOPS Concepts ERP CRM Technology Trends Supply Chain Management Neuro Linguistic Programming Client Server Service Oriented Architecture Category
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape