Created
September 8, 2012 20:39
-
-
Save andrijac/3679542 to your computer and use it in GitHub Desktop.
testing
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> | |
#include<conio.h> | |
#include<stdlib.h> | |
//#include<iostream> | |
void wl(int); | |
void main() | |
{ | |
int i, j; | |
int *p = (int*)malloc(sizeof(int)); | |
i = 5; | |
p = &i; | |
j = *p; | |
//printf(FILENAME_MAX); | |
wl(j); | |
//return 0; | |
} | |
void wl(int number) { | |
char buf [ 5 ]; | |
sprintf(buf, "%d", number); | |
printf("%s\n", buf); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment