<pre>#include <stdio.h> #include <stdlib.h> #include <string.h> int test (char *param) { printf("%d", *param); } int main(void){ char a[]="9009"; test(a); }
%c
Quote:I tried many experiments on this code. Still, I don't know why *param is printing 57?
#include <stdio.h> #include <stdlib.h> #include <string.h> void test (const char * param) { printf("%s\n", param); } int main(void) { char a[] = "9009"; test(a); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)