Results 1 to 3 of 3

Thread: What is const pointer in C?

  1. #1

  2. #2
    Registered
    Join Date
    Mar 2016
    Posts
    76
    Const pointer is a pointer that can’t change the address of the variable that is pointing to. Once const pointer is made to point one variable we can’t change this pointer to point to any other variable. This pointer is called const pointer.

  3. #3
    Registered pxljobs's Avatar
    Join Date
    Jul 2016
    Location
    Bangalore
    Posts
    290
    The constant pointer cannot modified,the modification made in pointer is not allowed example a const pointer means pointer which address one value if you declare a point inside a function not have scope in outside function.
    syntax:
    data_type*const pointer_name=initial_address.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •