Last active
January 18, 2019 08:46
-
-
Save renaudcerrato/d780803311adbe40b8706329d9d25bc9 to your computer and use it in GitHub Desktop.
Usage of typeOf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void foo(int *x) { | |
typeof(x) y; // Declares y with the type of x | |
typeof(*x) z; // Declare z with the type what x points to | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment