Difference between revisions of "Interview Preparation Pointers"

From Embedded Systems Learning Academy
Jump to: navigation, search
Line 1: Line 1:
  
 
Pointers : A pointer is a variable who's value is address of some other variable i.e. it can be address of some memory location.   
 
Pointers : A pointer is a variable who's value is address of some other variable i.e. it can be address of some memory location.   
 
+
<pre>
<syntaxhighlight lang="C">
 
 
 
 
<varaible_type>  *<name>
 
<varaible_type>  *<name>
 
eg :  
 
eg :  
 
     int *pointer_to_integer
 
     int *pointer_to_integer
 
+
</pre>
 
The above example , we have declared a pointer to a variable (pointer_to_integer), the variable stores the address of an integer .
 
The above example , we have declared a pointer to a variable (pointer_to_integer), the variable stores the address of an integer .
  
 
   '''Under_construction'''
 
   '''Under_construction'''

Revision as of 17:40, 26 November 2016

Pointers : A pointer is a variable who's value is address of some other variable i.e. it can be address of some memory location.

<varaible_type>  *<name>
eg : 
     int *pointer_to_integer

The above example , we have declared a pointer to a variable (pointer_to_integer), the variable stores the address of an integer .

 Under_construction