printf - C sprintf - could you please explain the following? -
what meaning of following line:
sprintf(version, "%ld%c", tpdu->version, sep); i getting confused in "%ld%c". how used here?
%ld%c 2 format specifiers %ld , %c. former used long int while latter used char.
the sprintf have writes value of tpdu->version, long int , value of sep, char buffer version.
Comments
Post a Comment