Created
February 17, 2021 03:20
-
-
Save Silva97/382836a0e465c89e0b694af8ea08da4b to your computer and use it in GitHub Desktop.
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
#include <stdio.h> | |
int main(void) | |
{ | |
int x = 5; | |
float y = 5.0f; | |
int *x_ptr = &x; | |
int *y_ptr = (int *)&y; | |
if (*x_ptr == *y_ptr) | |
{ | |
puts("Iguais!"); | |
} | |
else | |
{ | |
puts("Diferentes?"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment