ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What is the difference between null pointer and the void
pointer?
 Question Submitted By :: Sivavendra
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between null pointer and the void pointer?
Answer
# 1
NULL POINTER:
   this pointer returns null value to the main function......
it cant be type casted.........

VOID POINTER:
     this pointer has a special advantages that it can point
to any value (int , char, float etc) when its type casted

for eg:
        main()
{
char *p;
int n;
(int *)p=&n;
so on the above  character pointer is been type casted to
point an integer value n;
 
Is This Answer Correct ?    1 Yes 0 No
Vignesh1988i
 
  Re: What is the difference between null pointer and the void pointer?
Answer
# 2
null pointer contain null value . it doesn't contain any 
value.
while void pointer is a pointer that cascade at a runtime.
i.e it casting at runtime
 
Is This Answer Correct ?    1 Yes 0 No
Vaibhav
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }  5
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986  2
C passes By value or By reference? Geometric-Software5
True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type  5
Write a programme to find even numbers without using any conditional statement? Infosys3
post new interiew question and aptitude test papers  1
can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...  4
WAP to accept first name,middle name & last name of a student display its initials? NIIT2
Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass. Microsoft6
write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function. Temenos4
class foo { public: static int func(const char*& p) const; }; This is illegal, why? Google6
#include<stdio.h> int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean? Intel4
How does free() know how many bytes to free?  5
program to find the roots of a quardratic equation  1
a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21 TCS4
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV Accenture3
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ? NIIT1
Concat two string with most overlapped substring has to remove  "abcd"+ "cdef" = "abcdef  5
write a C code to reverse a string using a recursive function, without swapping or using an extra memory. Motorola2
actually i have 2 years teaching experience as computer faculty but now i am a DBA but when i go for interview many peoples asked me why i left my teaching profession and why i want to come in this field kindly give me the proper answer of this queston  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com