I'm facing a weird problem, I don't know why the code below won't print anything after %n
and It just prints Hi
, It even won't save the result in res
variable.
Am I doing something wrong?
#include <stdio.h>
int main()
{
int res;
printf("Hi %n there",&res);
printf("\n%d",res);
return 0;
}
The result
Hi
4194432