+ 7

Do pInt, pFloat, pChar mean pointer of Integer, pointer of Float and pointer of Char?

#include <stdio.h> int main() { char *pChar; int *pInt; float *pFloat; printf("%d",sizeof(pChar)); printf("%d",sizeof(pInt)); printf("%d",sizeof(pFloat)); return 0; }

26th Jan 2019, 9:54 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 Réponse
+ 5
Yes, but those are just variable names, you can change those freely.
26th Jan 2019, 12:05 PM
Zen
Zen - avatar