Search
 
SCRIPT & CODE EXAMPLE
 

C

** in c

// ** is call a double pointer 
// ** is just a pointer to a pointer
char **p1;
char **p2;
// This is an array of characters( char ).
// an arrays first address is considered a pointer.
// thats why you use a double pointer.
char *tables[5] = {"A","B","C","D","E"};

// Point to the beginning of the table array to store the start of the array 
// addresses.  This stores the array address not the array value.
p1 = table;

// This is pointing to the last adderess of the array.
p2 = table[5];

//to get the values from p1 nd p2
printf("this is the value of p1 %s 
", *p1);
printf("this is the value of p2 %s 
", *p2);

// Hope this helped!
		// Happy coding!!
Comment

%= in c

Modulus AND assignment operator. It takes modulus using two operands and assigns the result to the left operand.
Comment

* and & in c

int i = 10; //i is an int, it has allocated storage to store an int.
int *k; // k is an uninitialized pointer to an int. 
        //It does not store an int, but a pointer to one.
k = &i; // make k point to i. We take the address of i and store it in k
int j = *k; //here we dereference the k pointer to get at the int value it points
            //to. As it points to i, *k will get the value 10 and store it in j
Comment

PREVIOUS NEXT
Code Example
C :: north austin weather 
C :: c read file from command line 
C :: c get pid 
C :: hostbuilder add environment variables 
C :: fungetc 
C :: pathlib exclude hidden file 
C :: setw in c 
C :: do a barrel roll 
C :: parcel-builder put image in sub folder 
C :: C++ How to use enums for flags? 
C :: ansi c function array of strings parameter 
C :: google business customer care number india 24/7 
C :: can torch light bring change in chemical reaction 
C :: Uri/Beecrowd problem no - 1151 solution in C 
C :: how to stop aws alb temporarily 
C :: false and true in c 
C :: c math.h sqrt 
C :: Clearing The Input Buffer In C/C++ 
C :: how to delete data and add from file in c language 
C :: adding three numbers in c 
C :: Odd-Even-inator with function in C 
C :: python adding calculator 
C :: print number in c 
C :: The closest in between 
C :: ctest run specific test 
C :: c if statement 
C :: CODE SOURCE POUR LISTE DOUBLEMENT CHAINEé en c 
Dart :: flutter text form field change underline color 
Dart :: how to make a column scrollable in flutter 
Dart :: Flutter: Setting the height of the AppBar 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =