-> operator
C
(pointer_name)->(variable_name)// C program to show Arrow operator
// used in structure
#include <stdio.h>
#include <stdlib.h>
// Creating the structure
struct student {
char name[80];
int age;
float percentage;
};
// Creating the structure object
struct student* emp = NULL;
// Driver code
int main()
{
// Assigning memory to struct variable emp
emp = (struct student*)
malloc(sizeof(struct student));
// Assigning value to age variable
// of emp using arrow operator
emp->age = 18;
// Printing the assigned value to the variable
printf("%d", emp->age);
return 0;
}
Also in C:
- Title
- confirm sweet alert
- Category
- C
- Title
- reset style matplotlib
- Category
- C
- Title
- generate all permutations of string
- Category
- C
- Title
- get a remote branch git
- Category
- C
- Title
- hopw to check how many duplicates in an array c
- Category
- C
- Title
- bubble sort time complexity
- Category
- C
- Title
- how to login to another user in powershell
- Category
- C
- Title
- c program to find the sum of given number
- Category
- C
- Title
- random en c
- Category
- C
- Title
- c fill 2d array
- Category
- C
- Title
- mongodb delete all documents
- Category
- C
- Title
- accessing elements 2D array using pointers
- Category
- C
- Title
- How to pull images from Docker Registry
- Category
- C
- Title
- arduino millis()
- Category
- C
- Title
- enum c
- Category
- C
- Title
- Print the number 0 using write()
- Category
- C
- Title
- inurl:fiu.edu math faculty
- Category
- C
- Title
- python web crawler
- Category
- C
- Title
- c print hello world
- Category
- C
- Title
- vbl share price
- Category
- C
- Title
- append to list in c
- Category
- C
- Title
- csrf_exempt
- Category
- C
- Title
- '&&' within '||'
- Category
- C
- Title
- code: 'EADDRINUSE', [0] errno: 'EADDRINUSE', [0] syscall: 'listen', [0] address: '::', [0] port: 5000
- Category
- C
- Title
- 'keras.backend' is not a package
- Category
- C
- Title
- write array of char to file in c
- Category
- C
- Title
- write in file in c
- Category
- C
- Title
- malloc in c
- Category
- C
- Title
- 1 212 32123 4321234 543212345 in c
- Category
- C
- Title
- c array
- Category
- C
- Title
- what are the causes of memory leaks in c
- Category
- C
- Title
- c allocate array
- Category
- C
- Title
- XAudio2 C
- Category
- C
- Title
- c producer consumer pthread semaphore
- Category
- C
- Title
- what is the meaningof noremap
- Category
- C
- Title
- strcat in c
- Category
- C
- Title
- resto de division recursiva
- Category
- C
- Title
- pi in c language
- Category
- C
- Title
- arduino digital io pins
- Category
- C
- Title
- how to comment in arduino
- Category
- C
- Title
- coin row problem in linear time
- Category
- C
- Title
- windeployqt example
- Category
- C
- Title
- múltiplos entre dos numeros en c
- Category
- C
- Title
- How to pass a struct value to a pthread in c?
- Category
- C
- Title
- infinite loop using while
- Category
- C
- Title
- sbatch array set max jobs at once
- Category
- C
- Title
- how to go to top of file in vim
- Category
- C
- Title
- bella ciao lyrics
- Category
- C
- Title
- msdos
- Category
- C
- Title
- char to int c
- Category
- C
- Title
- kadane's algorithm
- Category
- C
- Title
- c print array
- Category
- C
- Title
- scanf integer
- Category
- C
- Title
- es par
- 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
- how to check the size of a file c
- Category
- C
- Title
- arduino knn
- Category
- C
- Title
- binary tree geekd for geeks
- Category
- C
- Title
- oop244
- Category
- C
- Title
- text wrap terminal colour
- Category
- C
- Title
- scanf read line
- Category
- C
- Title
- how to remove button decoration
- Category
- C
- Title
- read files in c
- Category
- C
- Title
- multiplicacion recursiva
- Category
- C
- Title
- PS1 modified lags
- Category
- C
- Title
- -> operator
- Category
- C
- Title
- casting in c
- Category
- C
- Title
- string to int c
- Category
- C
- Title
- c defined value sum
- Category
- C
- Title
- code in c skipping over scanf
- Category
- C
- Title
- how to pass an array value to a pthread in c
- Category
- C
- Title
- switch case c
- Category
- C
- Title
- fa fa-facebook
- Category
- C
- Title
- .\main.c:4:8: error: expected declaration specifiers or '...' before '\x6f726c64'
- Category
- C
- Title
- C largest unsigned int
- Category
- C
- Title
- how to change the mapping from jkil to wasd in vim
- Category
- C
- Title
- how to print in c
- Category
- C
- Title
- find string in all files powershell
- Category
- C
- Title
- print variable c
- Category
- C
- Title
- how to check the size of a file in linux c
- Category
- C
- Title
- FILE*
- Category
- C
- Title
- what is size_t in c
- Category
- C
- Title
- factorial of a given number in c
- Category
- C
- Title
- c string concatenation with int
- Category
- C
- Title
- router solicitation and advertisement magic is used by
- Category
- C
- Title
- strrev in c
- Category
- C
- Title
- c get first n characters of string
- Category
- C
- Title
- unordered_map
- Category
- C
- Title
- tar cmd
- Category
- C
- Title
- how to put quotes inside string c
- Category
- C
- Title
- bash: apt-add-repository: command not found
- Category
- C
- Title
- read a document in c getting name from console
- Category
- C
- Title
- matplotlib pyplot legend location
- Category
- C
- Title
- c check if char is number
- Category
- C
- Title
- isalpha c
- Category
- C
- Title
- v
- Category
- C
- Title
- vector aleatorio sin repetir
- Category
- C
- Title
- atoi c
- Category
- C
- Title
- write a binary file c
- Category
- C