Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char **argv)
- {
- void *matrix[5][5];
- matrix[0][0] = (void*) "uma string na coluna zero";
- float *f = (float*) malloc(sizeof(float));
- *f = 15.0;
- matrix[0][1] = (void*) f;
- printf("%s\n%f\n", (char*) matrix[0][0], *(float*) matrix[0][1]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement