Skip to content

Instantly share code, notes, and snippets.

@Silva97
Created February 17, 2021 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Silva97/382836a0e465c89e0b694af8ea08da4b to your computer and use it in GitHub Desktop.
Save Silva97/382836a0e465c89e0b694af8ea08da4b to your computer and use it in GitHub Desktop.
#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