logo

Quirks when it comes to declaring pointers in C

#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv[]) { // p1 is a pointer but p2 is not int* p1, p2; char* str[20]; printf("%llu\n", sizeof(str)); return 0; }
Course thumb

The C programming language made simple