Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books

C Pointers


C Pointers: Interview questions

Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

C Pointers - August 06, 2008 at 13:10 PM by Amit Satpute

Compare array with pointer.

Answer
The following declarations are NOT the same:
char *p;
char a[20];

The first declaration allocates memory for a pointer; the second allocates memory for 20 characters.

What is NULL pointer?

Answer
A null pointer does not point to any object.
NULL and 0 are interchangeable in pointer contexts.Usage of NULL should be considered a gentle reminder that a pointer is involved.
It is only in pointer contexts that NULL and 0 are equivalent. NULL should not be used when another kind of 0 is required. 

  1. Describe pointer in brief.
  2. What is a void pointer?
  3. List the difference between pointer and array.
  4. Define NULL pointer.

 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.