diferencia entre * y & en c
C
Un puntero, en C, se declara como sigue:
tipo * nombre_puntero ; //char *pchar;
Diferencia entre "*" y "&"
'&': direccion de memoria
'*': contenido de esa dirección de memoria
char a = 'm'; /* Variable 'a' de tipo char */
char *pchar; /* Puntero a char 'pchar' */
pchar = &a; /* 'pchar' <- @ de 'a' */
printf("la direccion de memoria de 'a' es: %p \n", &a); //la direccion de memoria de 'a' es: 0061FF1B
printf("y su contenido es : %c \n", *pchar); //y su contenido es : m
Also in C:
- Title
- buscar caracter
- Category
- C
- Title
- disable gnu++11 option
- Category
- C
- Title
- write a binary file c
- Category
- C
- Title
- battlefield4u.com
- Category
- C
- Title
- version of libgcc
- Category
- C
- Title
- ordenar un vector
- Category
- C
- Title
- how to put quotes inside string c
- Category
- C
- Title
- primo
- Category
- C
- Title
- vbl share price
- Category
- C
- Title
- simpy process return value
- Category
- C
- Title
- diferencia entre * y & en c
- Category
- C
- Title
- c array
- Category
- C
- Title
- bash: apt-add-repository: command not found
- Category
- C
- Title
- c if int
- Category
- C
- Title
- vector aleatorio sin repetir
- Category
- C
- Title
- append to list in c
- Category
- C
- Title
- How to pull images from Docker Registry
- Category
- C
- Title
- unordered_map
- Category
- C
- Title
- strcat in c
- Category
- C
- Title
- ImportError: No module named 'skimage'
- Category
- C
- Title
- Print the number 0 using write()
- Category
- C
- Title
- mostrar lista recursiva
- Category
- C
- Title
- matplotlib pyplot legend location
- Category
- C
- Title
- write a program to ask the user 8 integer numbers. your program will then move all negative elements of your array to the end of the array without changing the order of positive elements and negative elements
- Category
- C
- Title
- reset c array to zero
- Category
- C
- Title
- oop244
- Category
- C
- Title
- passing 2d array as parameter to function in c
- Category
- C
- Title
- triangulo
- Category
- C
- Title
- add border to image android
- Category
- C
- Title
- Declare macro
- Category
- C
- Title
- '&&' within '||'
- Category
- C
- Title
- get configuration script window 7
- Category
- C
- Title
- stack
- Category
- C
- Title
- mitch mcconnell
- Category
- C
- Title
- piramide
- Category
- C
- Title
- tkinter create_line
- Category
- C
- Title
- how to login to another user in powershell
- Category
- C
- Title
- div
- Category
- C
- Title
- how to rebasde
- Category
- C
- Title
- iterar en map
- Category
- C
- Title
- hello world
- Category
- C
- Title
- turn a char array into double C
- Category
- C
- Title
- c program to find the sum of given number
- Category
- C
- Title
- c bitwise operators
- Category
- C
- Title
- printf("%3d ",XX);
- Category
- C
- Title
- is c and c++ platform independent
- Category
- C
- Title
- array length c
- Category
- C
- Title
- docker images command
- Category
- C
- Title
- code in c skipping over scanf
- Category
- C
- Title
- struct in C
- Category
- C
- Title
- first person view unity
- Category
- C
- Title
- how to globally initlailize a struct
- Category
- C
- Title
- c
- Category
- C
- Title
- what is size_t in c
- Category
- C
- Title
- atoi
- Category
- C
- Title
- malloc in c
- Category
- C
- Title
- command line arguments c
- Category
- C
- Title
- iterate through map
- Category
- C
- Title
- what is stdin in c
- Category
- C
- Title
- c defined value sum
- Category
- C
- Title
- ModuleNotFoundError: No module named 'tensorboardX'
- Category
- C
- Title
- passing 'const char *' to parameter of type 'char *' discards qualifiers
- Category
- C
- Title
- stack implementation
- Category
- C
- Title
- isalpha c
- Category
- C
- Title
- how to ascii art in c
- Category
- C
- Title
- how to download file in powershell
- Category
- C
- Title
- what is conio.h
- Category
- C
- Title
- convert string to float c
- Category
- C
- Title
- how to feed a char array to function in C
- Category
- C
- Title
- C largest unsigned int
- Category
- C
- Title
- c matrix sintax
- Category
- C
- Title
- uint32_t extract first bits
- Category
- C
- Title
- how to pass an array to a thread in c?
- Category
- C
- Title
- java.lang.SecurityException: Permission denied (missing INTERNET permission?)
- Category
- C
- Title
- arduino define
- Category
- C
- Title
- casting in c
- Category
- C
- Title
- xmlns='' was not expected
- Category
- C
- Title
- confirm sweet alert
- Category
- C
- Title
- what are the causes of memory leaks in c
- Category
- C
- Title
- Assign integer value to pointer?
- Category
- C
- Title
- how to print a file c
- Category
- C
- Title
- c allocate array
- Category
- C
- Title
- how to remove \n from a string c
- Category
- C
- Title
- command line coursera
- Category
- C
- Title
- c vs python
- Category
- C
- Title
- scanf read line
- Category
- C
- Title
- CL/cl.h: No such file or directory
- Category
- C
- Title
- azure storage emulator config
- Category
- C
- Title
- dani
- Category
- C
- Title
- docker pull command
- Category
- C
- Title
- ‘uint64_t’ was not declared in this scope
- Category
- C
- Title
- c radians
- Category
- C
- Title
- suma de n numeros recursiva
- Category
- C
- Title
- reverse function in c
- Category
- C
- Title
- code wars responsable drinker
- Category
- C
- Title
- mongodb delete all documents
- Category
- C
- Title
- find string in all files powershell
- Category
- C
- Title
- write in file in c
- Category
- C
- Title
- how to change the mapping from jkil to wasd in vim
- Category
- C
- Title
- duplicar cadena
- Category
- C